hugo-theme-relearn/exampleSite/content/shortcodes/_index.en.md

19 lines
869 B
Markdown
Raw Normal View History

+++
2024-10-12 19:28:28 +02:00
categories = ["reference"]
menuPre = "<i class='fa-fw fas fa-shapes'></i> "
2022-08-05 23:53:30 +02:00
ordersectionsby = "title"
title = "Shortcodes"
type = "chapter"
2024-09-21 13:05:58 +02:00
weight = 4
+++
2017-08-20 17:10:29 +02:00
2024-09-24 13:34:02 +02:00
Hugo uses Markdown as its content format. However, there are a lot of things that Markdown doesn't support well.
2017-08-20 17:10:29 +02:00
2024-09-24 08:05:40 +02:00
You could use pure HTML to expand your possibilities. But this happens to be a bad idea. Everyone uses Markdown because it's pure and simple to read. You should avoid HTML to keep it as simple and portable as possible.
2017-08-20 17:10:29 +02:00
2024-09-24 08:05:40 +02:00
To avoid Markdown's limitations, Hugo created [shortcodes](https://gohugo.io/content-management/shortcodes/). A shortcode is a simple snippet inside of a page.
2017-08-20 17:10:29 +02:00
2024-09-24 08:05:40 +02:00
The Relearn theme provides many shortcodes on top of [Hugo's existing ones](https://gohugo.io/content-management/shortcodes/#embedded-shortcodes).
{{% children containerstyle="div" style="h2" description=true %}}