diff options
| author | Aditya Telange <21258296+adityatelange@users.noreply.github.com> | 2020-12-08 00:16:11 +0530 |
|---|---|---|
| committer | Aditya Telange <21258296+adityatelange@users.noreply.github.com> | 2020-12-08 00:16:11 +0530 |
| commit | db38e156f56ce452f29d248cae3efca6eb865774 (patch) | |
| tree | 908c2d3052831536321fe98d0b2d4f423312b2b1 | |
| parent | 08e58f5f773f935a97ecd0ce32acc62c2bc40ad4 (diff) | |
footer: hljs: add check to not load hljs on archive and search
| -rw-r--r-- | layouts/partials/footer.html | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/layouts/partials/footer.html b/layouts/partials/footer.html index 65045f4..e6e894a 100644 --- a/layouts/partials/footer.html +++ b/layouts/partials/footer.html @@ -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 }}" |
