Decap CMS

Open-source content management Git-based.

Version 3 Available in production Maintained CMS

Warning: Not supported features

  • UUID widget: Decap CMS has none. With config.id: true, Hugolify loads a community one, netlify-cms-widget-uuid-v4.

Enable Decap CMS

/config/_default/params.yaml

admin:
  cms: decapcms

Decap CMS is the default: without cms, Hugolify Admin already loads it.

How it works

The CMS is served at /admin/ of the site. On each build, Hugo writes its configuration to /admin/config.yml, from the modules and the params of the site: each section and taxonomy module brings its collection, each enabled block its form, each enabled shortcode joins the markdown editor. Adding a module adds its collection, with nothing to write by hand.

The script is loaded from unpkg, ^3.0.0 by default. Set version to pin a release: see CMS version.

Authentication

Netlify Identity with Git Gateway is the default of Decap CMS: editors get an account invited from Netlify, without a GitHub account.

Set up Netlify Identity and Git Gateway

git and auth pick another Git backend and its sign-in: see Authentication.

Local backend

local_backend: true, the default, lets Decap CMS edit the files of your local copy instead of the remote repository. Run its proxy server in a second terminal, next to hugo server:

yarn cms

The CMS is then available at http://localhost:1313/admin/.

Supported features

FeatureDecap CMS
Multilingual siteOne file per language
Nested collectionsAvailable
Filters, view filters and view groupsAvailable
Sortable fieldsAvailable
Preview paneWith preview: true
Cloud mediaCloudinary and Uploadcare
ShortcodesAvailable
Table viewNot available

The interface follows the site language, defaultContentLanguage: set locale to show it in another one.

Decap CMS or Sveltia CMS?

Both read the same /admin/config.yml, so switching is one param. Keep Decap CMS for editors signing in with Netlify Identity. Sveltia CMS, the preferred CMS, adds the table view, bulk edit, reorder and stock photos, but has no Git Gateway nor Netlify Identity.

Icon library

Screenshot

Homepage screenshot of Hugolify Admin

Documentation

Tutorials