hugo-theme-next/layouts/partials/_funs/add_unix_param.html

4 lines
154 B
HTML
Raw Normal View History

{{/** Add unix time end of link URL. **/}}
{{ $timeUnix := time.Now.Unix }}
{{ $withTimeLink := printf "%s?=%d" . $timeUnix }}
{{ return $withTimeLink }}