Commenting within Hugo templates
Commenting in web pre-processors can be complicated because there’s so many layers and steps of interpolation. Hugo is no exception.
Hugo automatically strips HTML comment tags. If you need to add an HTML comment to your Hugo templates that doesn’t get stripped, you can use this syntax:
{{ "<!-- foo/bar/baz whatever -->" | safeHTML }}