Skip to content

Shortcodes

Shortcodes are Hugo-only. In Astro repos, the shortcode buttons are hidden.

In advanced mode:

  1. Click a shortcode button in the toolbar (e.g. YouTube Video)
  2. Or click + shortcode to see all available shortcodes
  3. Fill in the fields
  4. Click Sett inn

The shortcode is inserted at the cursor position:

{{< youtube id="dQw4w9WgXcQ" >}}

Shortcodes are defined in data/scribe.yaml under the shortcodes key. Edit this file via the Data files zone in scribe.