all repos — archie @ 0293190e3a8144c8044adc2420db53361d873322

A minimal Hugo Theme

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
commit

0293190e3a8144c8044adc2420db53361d873322

parent

ddcd4cdcfc0b150fafd6dac1af1ec3d46e39753b

1 files changed, 1 insertions(+), 1 deletions(-)

jump to
M layouts/partials/header.htmllayouts/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 -}}