评论
v0.137.1 版本新增
使用 comment
短代码在你的内容中包含评论。Hugo 在渲染你的站点时将忽略这些评论中的文本。
内联使用
{{% comment %}} rewrite the paragraph below {{% /comment %}}
或者作为块注释
{{% comment %}}
rewrite the paragraph below
{{% /comment %}}
尽管你可以使用 {{< >}}
表示法调用此短代码,但从计算的角度来看,使用 {{% %}}
表示法调用它效率更高,如上所示。