mirror of
https://github.com/McShelby/hugo-theme-relearn.git
synced 2025-02-23 12:00:15 +00:00

adapt the variant generator to previous changes; interestingly, the new mechanism caused the variant generator to be greatly simplified; something, I didn't expect beforehand
8 lines
No EOL
269 B
HTML
8 lines
No EOL
269 B
HTML
{{- $page := .page }}
|
|
{{- $location := .location }}
|
|
{{- if eq $location "header" }}
|
|
{{- with $page }}
|
|
{{- $assetBusting := partialCached "assetbusting.gotmpl" . }}
|
|
<script src="{{"js/variant.js" | relURL}}{{ $assetBusting }}"></script>
|
|
{{- end }}
|
|
{{- end }} |