fix for dark/light mode toggle when not using CDN (#42) * fix for dark/light mode toggle when not using CDN * fix for dark/light mode when not using CDN Authored-by: Marek Bukala-Karbownik <marek.karbownik@lib.uni.lodz.pl>
MBK 63792994+marbuka@users.noreply.github.com
Thu, 03 Feb 2022 06:43:40 +0100
1 files changed,
1 insertions(+),
1 deletions(-)
jump to
M
layouts/partials/header.html
→
layouts/partials/header.html
@@ -24,7 +24,7 @@ {{- template "_internal/opengraph.html" . -}}
{{- template "_internal/twitter_cards.html" . -}} {{ if and (isset .Site.Params "social") (.Site.Params.useCDN | default false) -}} <script src="https://cdn.jsdelivr.net/npm/feather-icons/dist/feather.min.js"></script> - {{- else if (isset .Site.Params "social") -}} + {{- else if or (isset .Site.Params "social") (eq .Site.Params.mode "toggle") -}} <script src="{{ .Site.BaseURL }}js/feather.min.js"></script> {{ end }} {{ if .Site.Params.useCDN | default false -}}