Shortcodes

Add/modify shortcodes

Available for CloudCannon, Decap CMS, Netlify CMS and Sveltia CMS

Add or remove shortcodes

/config/_default/params.yaml

All shortcodes are available by default but if you want hide or add your shortcodes, you can do it:

admin:
  shortcodes:
    # Array of available shortcodes
    enable:
      - alert
      - badge
      - blank_link
      - blockquote
      - button
      - details
      - map
      - twitter
      - youtube

Disable shortcodes

/config/_default/params.yaml

admin:
  shortcodes:
    enable: false

Create a shortcodes

Create file

Add a js shortcode file in shortcodes directory.

layouts/
└── partials/
    └── admin/
        └── cms/
            └── decapcms/
                └── shortcodes/

Keep these files in layouts/partials/: hugolify-admin v1 looks for them there, not in layouts/_partials/.

And add it in enable shortcodes: see above

Examples

See examples in repository (for decap CMS)

List of Hugolify shortcodes

Hugolify shortcodes