mirror of
https://github.com/McShelby/hugo-theme-relearn.git
synced 2025-02-07 12:23:30 +00:00
![Sören Weber](/assets/img/avatar_default.png)
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 }} |