diff options
Diffstat (limited to 'docs/content/en/shortcodes/comment.md')
-rwxr-xr-x | docs/content/en/shortcodes/comment.md | 39 |
1 files changed, 0 insertions, 39 deletions
diff --git a/docs/content/en/shortcodes/comment.md b/docs/content/en/shortcodes/comment.md deleted file mode 100755 index 1600c09d3..000000000 --- a/docs/content/en/shortcodes/comment.md +++ /dev/null @@ -1,39 +0,0 @@ ---- -title: Comment -description: Include hidden comments in your content with the comment shortcode. -categories: [shortcodes] -keywords: [] -menu: - docs: - identifier: shortcodes-comment - parent: shortcodes - weight: -weight: -expiryDate: 2025-01-22 # deprecated 2025-02-01 in v0.143.0 and immediately removed from the documentation ---- - -{{% note %}} -To override Hugo's embedded `comment` shortcode, copy the [source code] to a file with the same name in the `layouts/shortcodes` directory. - -[source code]: {{% eturl comment %}} -{{% /note %}} - -{{< new-in 0.137.1 />}} - -Use the `comment` shortcode to include comments in your content. Hugo will ignore the text within these comments when rendering your site. - -Use it inline: - -```text -{{%/* comment */%}} rewrite the paragraph below {{%/* /comment */%}} -``` - -Or as a block comment: - -```text -{{%/* comment */%}} -rewrite the paragraph below -{{%/* /comment */%}} -``` - -Although you can call this shortcode using the `{{</* */>}}` notation, computationally it is more efficient to call it using the `{{%/* */%}}` notation as shown above. |