-
Notifications
You must be signed in to change notification settings - Fork 2
Shortcodes
Scribble edited this page Sep 2, 2025
·
2 revisions
Here is a list of shortcodes available in the hugo theme.
Note that blocks with {{<name>}} render with plain text while {{%name%}} render in markdown. For more information, check the Hugo documentation
Render HTML withing markdown
{{<rawhtml>}}
<p> Your html code here! <p>
{{</rawhtml>}}Exactly like GitHub's Alerts
Note
{{% note %}}
Your text
{{% /note %}}Same for every other type of alert
{{% spoiler "This text will be in the summary html-tag" %}}
This text will be in the detail html-tag
{{% /spoiler %}}A cookie compliant youtube embed
{{<youtube-embed "BL8uRJYDmMQ">}}A discord style invite without guild data:
{{<discordinvite "jGhNxpd">}}To load the data, a load-discordinvite button has to be present on the site as well:
{{<load-discordinvite>}}