hugo-theme-relearn/layouts/partials/_relearn/assetbusting.gotmpl

6 lines
197 B
Go Template
Raw Normal View History

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