☁️ Loving our new documentation website? Provide feedback in the CloudCannon Community! ✨

_snippets_imports

On this page

Description:

This key defines snippet templates or libraries for your Site.

Some libraries are SSG specific while others work for most SSGs.

For more information, please read our documentation on Docusaurus Components, Eleventy Shortcodes, Hugo Shortcodes, MDX Components, or Python Markdown.

Type:
Object
Properties:
Examples:

In this example, we have configured Hugo shortcode imports for the Site.

Copied to clipboard
_snippets_imports:
  hugo:
    include:
      - figure
      - youtube
{
  "_snippets_imports": {
    "hugo": {
      "include": [
        "figure",
        "youtube"
      ]
    }
  }
}
Open in a new tab