Shortcodes
Shortcodes are Hugo-only. In Astro repos, the shortcode buttons are hidden.
Inserting a shortcode
Section titled “Inserting a shortcode”In advanced mode:
- Click a shortcode button in the toolbar (e.g. YouTube Video)
- Or click + shortcode to see all available shortcodes
- Fill in the fields
- Click Sett inn
The shortcode is inserted at the cursor position:
{{< youtube id="dQw4w9WgXcQ" >}}Adding shortcodes
Section titled “Adding shortcodes”Shortcodes are defined in data/scribe.yaml under the shortcodes key.
Edit this file via the Data files zone in scribe.