| | |
| | | --- |
| | | title: "Shortcodes" |
| | | weight: 4 |
| | | weight: 7 |
| | | description: > |
| | | Use hugo shortcodes to quickly compose site pages. |
| | | resources: |
| | | - src: "**spruce*.jpg" |
| | | params: |
| | | byline: "Photo: Bjørn Erik Pedersen / CC-BY-SA" |
| | | --- |
| | | |
| | | Rather than writing all your site pages from scratch, Hugo lets you define and use [shortcodes](https://gohugo.io/content-management/shortcodes/). These are reusable snippets of content that you can include in your pages, often using HTML to create effects that are difficult or impossible to do in simple Markdown. Shortcodes can also have parameters that let you, for example, add your own text to a fancy shortcode text box. As well as Hugo's [built-in shortcodes](https://gohugo.io/content-management/shortcodes/), Compose provides some shortcodes of its own to help you build your pages. |