mirror of
https://github.com/fruworg/themu.git
synced 2024-11-16 07:07:16 +03:00
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>
This commit is contained in:
parent
ddcd4cdcfc
commit
0293190e3a
@ -24,7 +24,7 @@
|
|||||||
{{- template "_internal/twitter_cards.html" . -}}
|
{{- template "_internal/twitter_cards.html" . -}}
|
||||||
{{ if and (isset .Site.Params "social") (.Site.Params.useCDN | default false) -}}
|
{{ 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>
|
<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>
|
<script src="{{ .Site.BaseURL }}js/feather.min.js"></script>
|
||||||
{{ end }}
|
{{ end }}
|
||||||
{{ if .Site.Params.useCDN | default false -}}
|
{{ if .Site.Params.useCDN | default false -}}
|
||||||
|
Loading…
Reference in New Issue
Block a user