Add Decap config

master
John Montagu, the 4th Earl of Sandvich 2025-03-13 15:03:14 -07:00
parent 09dd352bab
commit fd0b8ba8e6
Signed by: sandvich
GPG Key ID: 9A39BE37E602B22D
2 changed files with 49 additions and 0 deletions

View File

@ -0,0 +1,36 @@
# Media files will be stored in the repo under static/images/uploads
media_folder: "static/images/uploads"
# The src attribute for uploaded media will begin with /images/uploads
public_folder: "/images/uploads"
backend:
name: gitea
repo: sandvich/sandvich.xyz
app_id: 6197659c-ccaa-4c2c-a6fa-d9308ed77432
api_root: https://gitea.sandvich.xyz/api/v1
base_url: https://gitea.sandvich.xyz
auth_endpoint: https://gitea.sandvich.xyz/login/oauth/authorize
branch: master
collections:
- name: posts
label: Posts
folder: "content/posts"
create: true
slug: "{{ year }}-{{ month }}-{{ day }}-{{ slug }}"
fields:
- label: "Title"
name: "title"
widget: "string"
- label: "Publish Date"
name: "date"
widget: "datetime"
- label: "Body"
name: "body"
widget: "markdown"
- label: "Tags"
name: "tags"
widget: "list"

View File

@ -0,0 +1,13 @@
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<meta name="robots" content="noindex" />
<title>Content Manager</title>
</head>
<body>
<!-- Include the script that builds the page and powers Decap CMS -->
<script src="https://unpkg.com/decap-cms@^3.0.0/dist/decap-cms.js"></script>
</body>
</html>