Tutorials

Introducing Decap CMS Your Goto Solution for Content Management

Jon Doe 2 min

Decap CMS, formerly known as Netlify CMS, is an open-source content management system that offers developers a seamless way to manage content for static site generators.

What is Decap CMS?

What is Decap CMS?

Decap CMS is a Git-based CMS that allows developers and content creators to add, update, and delete content directly from the git repo of the site. This provides the benefits of version controlled content, allowing for easy rollbacks, branching, and other Git operations.

Key Features of Decap CMS

Key Features of Decap CMS

Open Source

Open Source

Being open-source means that you have access to the source code and can modify and customize it according to your project requirements. This allows for high flexibility in adapting the CMS to your specific needs.

Git-Based

Git-Based

Decap CMS uses Git workflows for content management. Every edit becomes a commit, every batch of edits becomes a pull request, and every saved draft is just a branch.

Easy to Use

Easy to Use

Decap CMS provides a user-friendly editorial interface for content creators, freeing them from needing to understand Git or code.

Getting Started with Decap CMS

Getting Started with Decap CMS

Getting started with Decap CMS is as easy as adding two files to your project: admin/index.html and admin/config.yml.

<!-- admin/index.html -->
<!doctype html>
<html>
<head>
  <meta charset="utf-8" />
  <meta name="viewport" content="width=device-width, initial-scale=1.0" />
  <title>Content Manager</title>
</head>
<body>
  <!-- Include the script that builds the page and powers Decap CMS -->
  <script src="https://unpkg.com/decap-cms@^2.0.0/dist/decap-cms.js"></script>
</body>
</html>
# admin/config.yml
backend:
  name: github
  repo: owner/repo
media_folder: "img/uploads"
public_folder: "/img/uploads"
collections:
  - name: "post"
    label: "Post"
    folder: "_posts"
    create: true
    fields:
      - {label: "Title", name: "title", widget: "string"}
      - {label: "Body", name: "body", widget: "markdown"}

In the era of Jamstack, Decap CMS is paving the way for modern, Git-based content management. With its simplicity and flexibility, it’s an excellent choice for developers and content creators alike.

Back to blog