From c3634e6ccdaa3930666b448d2b4ca9f2ec13a51f Mon Sep 17 00:00:00 2001 From: Cody Brownstein <25962175+cbrownstein@users.noreply.github.com> Date: Thu, 15 Apr 2021 21:23:18 -0700 Subject: [PATCH] Join lines in head for hljs assets (#360) Fixes errors in lower hugo versions Error: add site dependencies: load resources: loading templates: "site/themes/hugo-PaperMod/layouts/partials/head.html:79:1": parse failed: template: partials/head.html:79: unexpected unclosed action in command --- layouts/partials/head.html | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/layouts/partials/head.html b/layouts/partials/head.html index 042f9dd..b4fccfb 100644 --- a/layouts/partials/head.html +++ b/layouts/partials/head.html @@ -76,8 +76,7 @@ {{- $isHLJSdisabled := (.Site.Params.assets.disableHLJS | default .Params.disableHLJS ) }} {{- if (and (eq .Kind "page") (ne .Layout "archives") (ne .Layout "search") (not $isHLJSdisabled)) }} {{- if not .Site.Params.assets.disableFingerprinting }} -{{- $highlight := slice (resources.Get "js/highlight.min.js") | resources.Concat "assets/js/highlight.js" | minify | -fingerprint }} +{{- $highlight := slice (resources.Get "js/highlight.min.js") | resources.Concat "assets/js/highlight.js" | minify | fingerprint }} {{- else }}