summaryrefslogtreecommitdiff
path: root/layouts/partials/footer.html
diff options
context:
space:
mode:
authorAditya Telange <21258296+adityatelange@users.noreply.github.com>2020-10-03 18:31:08 +0530
committerAditya Telange <21258296+adityatelange@users.noreply.github.com>2020-10-03 18:31:08 +0530
commit8a8652fbf03faa9a830d77b6429f47dda3152e03 (patch)
treef44be88320171c660c32e106a544975de0e7ac39 /layouts/partials/footer.html
parent46d5200714dda2dc9d92b1ab7bccd3615f33f208 (diff)
assets: improvements
- rm redundant minify's - url as //assets/<js or css>/<path>
Diffstat (limited to 'layouts/partials/footer.html')
-rw-r--r--layouts/partials/footer.html4
1 files changed, 2 insertions, 2 deletions
diff --git a/layouts/partials/footer.html b/layouts/partials/footer.html
index 3264b91..ff5cdd5 100644
--- a/layouts/partials/footer.html
+++ b/layouts/partials/footer.html
@@ -11,8 +11,8 @@
<path d="M12 6H0l6-6z" /></svg>
</button>
</a>
-{{- if in site.Params.mainSections .Type }}
-{{- $highlight := resources.Get "js/highlight.min.js" | minify | fingerprint}}
+{{ if in site.Params.mainSections .Type }}
+{{- $highlight := slice (resources.Get "js/highlight.min.js") | resources.Concat "assets/js/highlight.js" | minify | fingerprint -}}
<script src="{{ $highlight.Permalink }}" integrity="{{ $highlight.Data.Integrity }}"></script>
<script>hljs.initHighlightingOnLoad();</script>
{{- end }}