mirror of
https://github.com/adityatelange/hugo-PaperMod.git
synced 2025-06-04 16:53:50 -04:00
assets: improvements
- rm redundant minify's - url as //assets/<js or css>/<path>
This commit is contained in:
parent
46d5200714
commit
8a8652fbf0
2 changed files with 16 additions and 16 deletions
|
@ -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 }}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue