Skip to content

Instantly share code, notes, and snippets.

@lukas-h
Created November 19, 2024 05:43
Show Gist options
  • Save lukas-h/dfa4dc59fca0501ad8de00c3cf4eacdf to your computer and use it in GitHub Desktop.
Save lukas-h/dfa4dc59fca0501ad8de00c3cf4eacdf to your computer and use it in GitHub Desktop.
DecapCMS Config
# admin/config.yml
backend:
name: github
repo: biralo-studio/biralo-studio
branch: main
site_domain: https://biralo.studio
base_url: https://biralo.studio
auth_endpoint: /api/auth
media_folder: assets/images
public_folder: /assets/images
collections:
- name: "post"
label: "Post"
folder: "_posts/"
create: true
slug: "{{year}}-{{month}}-{{day}}-{{slug}}"
fields:
- { label: "Layout", name: "layout", widget: "hidden", default: "post" }
- { label: "Title", name: "title", widget: "string" }
- { label: "Publish Date", name: "date", widget: "datetime" }
- { label: "Featured Image", name: "image", widget: "image" }
- { label: "Body", name: "body", widget: "markdown" }
<!-- 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>
<script src="https://unpkg.com/decap-cms@^3.3.3/dist/decap-cms.js"></script>
</body>
</html>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment