blog/static/admin/config.yml
gribse e8025733bc
Some checks are pending
/ test (push) Waiting to run
add decap cms
2025-04-24 22:19:51 +02:00

29 lines
1.1 KiB
YAML

backend:
name: gitea
repo: gribse/blog # Path to your Gitea repository
app_id: 39e3a9e2-1bd0-41be-bc4c-7c7f7023b51b # The Client ID provided by Gitea
api_root: https://git.achilletoupin.com/api/v1 # API URL of your Gitea instance
base_url: https://git.achilletoupin.com/ # Root URL of your Gitea instance
auth_endpoint: https://git.achilletoupin.com/login/oauth/authorize
# optional, defaults to master
branch: main
local_backend: true # allows local editing via npx decap-cms-proxy-server
media_folder: "static/images/uploads" # path in repo
public_folder: "/images/uploads" # URL path
collections:
- name: "posts"
label: "Posts"
folder: "content/posts"
create: true
slug: "{{slug}}"
extension: "md" # Hugo expects Markdown
format: "frontmatter"
fields:
- { label: "Title", name: "title", widget: "string" }
- { label: "Date", name: "date", widget: "datetime" }
- { label: "Draft", name: "draft", widget: "boolean", default: true }
- { label: "Tags", name: "tags", widget: "list", default: [] }
- { label: "Body", name: "body", widget: "markdown" }