mirror of
https://github.com/McShelby/hugo-theme-relearn.git
synced 2025-01-18 19:00:24 +00:00
deee4ae6b7
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 }} |