Decap CMS

Open-source content management Git-based.

Setup

/config/_default/module.yaml

imports:
  - path: github.com/hugolify/hugolify-decap-cms

Configuration

Only if you want customize your Hugolify Admin you can create some settings files.

Collections

Create a available-collections.js file in your settings directory.

/static/admin/app/settings

Example to have only Posts and Taxonomies (Categories and Tags)

import posts from "../content/posts.js";
import categories from "../content/categories.js";
import tags from "../content/tags.js";

export default [posts, categories, tags];

Blocks

Create a available-blocks.js file in your settings directory.

/static/admin/app/settings

Example to have a selection of available blocks

export { block_alert } from "../blocks/alert.js";
export { block_cta } from "../blocks/cta.js";
export { block_pages } from "../blocks/pages.js";
export { block_quote } from "../blocks/quote.js";
export { block_editorial } from "../blocks/editorial.js";
export { block_embed } from "../blocks/embed.js";
export { block_faq } from "../blocks/faq.js";
export { block_figure } from "../blocks/figure.js";
export { block_form } from "../blocks/form.js";
export { block_gallery } from "../blocks/gallery.js";
export { block_images } from "../blocks/images.js";
export { block_paragraph } from "../blocks/paragraph.js";
export { block_testimonials } from "../blocks/testimonials.js";
export { block_title } from "../blocks/title.js";

Sections

Create a available-sections.js file in your settings directy.

/static/admin/app/settings

Example to have a selection of available sections for specific blocks

export const availableSections = ["posts", "projects"];

Multilingual content edition

Create a available-languages.js file in your settings directy.

/static/admin/app/settings

export const availableLanguages = ["fr", "en"];

Interface language

Create a locale.js file in your config directory.

/static/admin/app/config

export const locale = "fr"; // or 'en'

Documention

Module