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

6 lines
No EOL
197 B
Text

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