Customizing 'Hugo' site with shortcodes - callouts, collapsable, and more
What is Hugo’s shortcode? A Hugo shortcode is a reusable and customizable template-like feature Shortcodes are written using Hugo’s templating language (based on Go templates). They are placed in the layouts/shortcodes directory of your Hugo project. Create a Shortcode File Save this as layouts/shortcodes/your_shortcode.html your-site/ ├── archetypes/ │ └── default.md ├── assets/ ├── content/ ├── data/ ├── i18n/ ├── layouts/ ├── └── shortcodes/ <-- your_shortcode.html ├── static/ ├── themes/ └── hugo....