How do I comment out content in Hugo?
If I have notes, unfinished thoughts, I'd like to leave them in the .md
file but not have them appear in the html
.
<!--
tags don't seem to work -- it doesn't even become a html comment, it remains visible text on the page.
Hugo has finally added a shortcode for markdown comments, from version 0.137.1. The syntax is:
{{% comment %}} This text will not be shown on the page. {{% /comment %}}