github.com/choria-io/go-choria@v0.28.1-0.20240416190746-b3bf9c7d5a45/docs/themes/hugo-theme-relearn/layouts/partials/make-random-md5.hugo (about) 1 {{- $page := . }} 2 {{- if (ne $page.Site.Params.disableRandomIds true) }} 3 {{- $random := "" }} 4 {{- $set := split "012345abcdefghijklmnopqrstuvwxyz" "" }} 5 {{- range (seq 16) }} 6 {{- with ($set | shuffle | first 1) }} 7 {{- $random = printf "%s%s" $random . }} 8 {{- end }} 9 {{- end }} 10 {{- md5 $random }} 11 {{- else }} 12 {{- printf "00000000000000000000000000000000" }} 13 {{- end }}