Skip to content

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

Rawhtml

Render HTML withing markdown

{{<rawhtml>}}
	<p> Your html code here! <p>
{{</rawhtml>}}

Notes

Exactly like GitHub's Alerts

Note

{{% note %}}  
Your text  
{{% /note %}}

Same for every other type of alert

Spoiler

{{% spoiler "This text will be in the summary html-tag" %}}
This text will be in the detail html-tag
{{% /spoiler %}}

Youtube-Embed

A cookie compliant youtube embed

{{<youtube-embed "BL8uRJYDmMQ">}}

Discord-Invite

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>}}

Clone this wiki locally