This theme provides several kinds of layouts, such as posts and docs.
Our documentation uses the docs layout. If you're looking for an example that using posts layout,
please take a look at the page Markdown Syntax.
1{{% alert warning %}}
2Alert Shortcode with Markdown Syntax:
3```bash
4$ echo'An example of alert shortcode with the Markdown syntax'5```6{{% /alert %}}
markdown
Alert Shortcode with Markdown Syntax:
1$ echo'An example of alert shortcode with the Markdown syntax'
bash
Please note that you’ll need to enable the markup.goldmark.renderer.unsafe configuration.
Aww yeah, you successfully read this important alert message. This example text is going to run a bit longer so that you can see how spacing within an alert works with this kind of content.
Warning
Danger
Well Done!
Aww yeah, you successfully read this important alert message. This example text is going to run a bit longer so that you can see how spacing within an alert works with this kind of content.
Hugo ships with several Built-in Shortcodes for rich content, along with a Privacy Config and a set of Simple Shortcodes that enable static and no-JS versions of various social media embeds.
Comments