mirror of
https://github.com/Wonderfall/hugo-WonderMod.git
synced 2024-10-01 01:06:14 -04:00
footer: hljs: add check to not load hljs on archive and search
This commit is contained in:
parent
08e58f5f77
commit
db38e156f5
@ -14,7 +14,7 @@
|
||||
<path d="M12 6H0l6-6z" /></svg>
|
||||
</button>
|
||||
{{- partial "extend_footer.html" . -}}
|
||||
{{ if in site.Params.mainSections .Type }}
|
||||
{{ if (and (in site.Params.mainSections .Type) (ne .Layout `archives`) (ne .Layout `search`)) }}
|
||||
{{- if not .Site.Params.assets.disableFingerprinting }}
|
||||
{{- $highlight := slice (resources.Get "js/highlight.min.js") | resources.Concat "assets/js/highlight.js" | minify | fingerprint }}
|
||||
<script defer src="{{ $highlight.Permalink }}" integrity="{{ $highlight.Data.Integrity }}"
|
||||
|
Loading…
Reference in New Issue
Block a user