Skip to content

Commit db38e15

Browse files
committed
footer: hljs: add check to not load hljs on archive and search
1 parent 08e58f5 commit db38e15

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

layouts/partials/footer.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
<path d="M12 6H0l6-6z" /></svg>
1515
</button>
1616
{{- partial "extend_footer.html" . -}}
17-
{{ if in site.Params.mainSections .Type }}
17+
{{ if (and (in site.Params.mainSections .Type) (ne .Layout `archives`) (ne .Layout `search`)) }}
1818
{{- if not .Site.Params.assets.disableFingerprinting }}
1919
{{- $highlight := slice (resources.Get "js/highlight.min.js") | resources.Concat "assets/js/highlight.js" | minify | fingerprint }}
2020
<script defer src="{{ $highlight.Permalink }}" integrity="{{ $highlight.Data.Integrity }}"

0 commit comments

Comments
 (0)