I have a somewhat academic question, but say I want to use a variable or method in an HTML comment, how would I go about doing this?
Consider:
{{ $lastmod := .Lastmod | time.Format ":date_long" }}
{{ printf "<!-- === This site was built by me,
and the last update was " | safeHTML }}
{{ printf "{{ $lastmod }} === -->" | safeHTML }}
Nor does something like this work, it just makes Hugo mad:
{{ printf "<!-- === This site was built by me,
and the last update was" {{ $lastmod }}
"=== -->" | safeHTML }}
Nothing dire here, mostly a curiosity…
Thanks!