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:
MBK 2022-02-03 06:43:40 +01:00 committed by GitHub
parent ddcd4cdcfc
commit 0293190e3a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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 -}}