fix(cms): config

This commit is contained in:
2025-09-24 16:50:47 +08:00
parent 3cb21efe6f
commit c6751fa311
6 changed files with 68 additions and 0 deletions

View File

@@ -0,0 +1,7 @@
backend:
name: gitea
repo: admin/my-blog
branch: main
base_url: https://gitea.shay7sev.site
auth_type: token
token: 18067b7eb7befdf6711c28bf0cba648f28fa0887

View File

@@ -14,3 +14,4 @@ highlight_code = false
[extra] [extra]
# Put all your custom variables here # Put all your custom variables here

20
public/admin/config.yml Normal file
View File

@@ -0,0 +1,20 @@
backend:
name: gitea
branch: main
repo: admin/my-blog
base_url: https://gitea.shay7sev.site # 你的 Gitea 域名
auth_type: token
token: 18067b7eb7befdf6711c28bf0cba648f28fa0887
media_folder: "static/uploads"
public_folder: "/uploads"
collections:
- name: "blog"
label: "Blog"
folder: "content/blog"
create: true
slug: "{{slug}}"
fields:
- { label: "Title", name: "title", widget: "string" }
- { label: "Publish Date", name: "date", widget: "datetime" }
- { label: "Body", name: "body", widget: "markdown" }

10
public/admin/index.html Normal file
View File

@@ -0,0 +1,10 @@
<!doctype html>
<html>
<head>
<meta charset="utf-8"/>
<title>Content Manager</title>
</head>
<body>
<script src="https://unpkg.com/decap-cms@^3.0.0/dist/decap-cms.js"></script>
</body>
</html>

20
static/admin/config.yml Normal file
View File

@@ -0,0 +1,20 @@
backend:
name: gitea
branch: main
repo: admin/my-blog
base_url: https://gitea.shay7sev.site # 你的 Gitea 域名
auth_type: token
token: 18067b7eb7befdf6711c28bf0cba648f28fa0887
media_folder: "static/uploads"
public_folder: "/uploads"
collections:
- name: "blog"
label: "Blog"
folder: "content/blog"
create: true
slug: "{{slug}}"
fields:
- { label: "Title", name: "title", widget: "string" }
- { label: "Publish Date", name: "date", widget: "datetime" }
- { label: "Body", name: "body", widget: "markdown" }

10
static/admin/index.html Normal file
View File

@@ -0,0 +1,10 @@
<!doctype html>
<html>
<head>
<meta charset="utf-8"/>
<title>Content Manager</title>
</head>
<body>
<script src="https://unpkg.com/decap-cms@^3.0.0/dist/decap-cms.js"></script>
</body>
</html>