Skip to Content

Content Snippets

Available on Pro plan and self-hosted. Save custom shortcodes and components as reusable building blocks for your editors.

Snippets allow developers to define reusable MDX components or Hugo shortcodes (e.g. <Button>, <Alert>, <Newsletter>) that content authors can insert without writing code.

The snippet management page


πŸ› οΈ Creating Snippets

  1. Go to Project Settings β†’ Snippets.
  2. Click Create Snippet.
  3. Define the template code and editable parameters:
    <Button href="{{url}}" variant="{{variant}}">{{label}}</Button>
  4. When authors type / or click the snippet button, a visual form pops up asking for label, url, and variant.
  5. The formatted snippet is placed into the document cleanly!
Last updated on