Cache busting in Hugo

note, May 1, 2023 on Mitja Felicijan's blog

{{ $cachebuster := delimit (shuffle (split (md5 "6fab11c6669976d759d2992eff1dd5be") "" )) "" }}

<link rel="stylesheet" href="/style.css?v={{ $cachebuster }}">

This 6fab11c6669976d759d2992eff1dd5be can be random string you generate use. You can use whatever you want.