hugo-theme-relearn/layouts/partials/_relearn/assetbusting.gotmpl
2024-10-11 16:45:40 +02:00

6 lines
No EOL
197 B
Go Template

{{- $assetsBuster := "" }}
{{- $assetBusting := not site.Params.disableAssetsBusting }}
{{- if $assetBusting }}
{{- $assetsBuster = printf "?%d" now.Unix }}
{{- end }}
{{- return $assetsBuster }}