添加项目文件

This commit is contained in:
2026-02-02 03:13:50 +08:00
parent 0a24e3a566
commit 4cc477603c
7 changed files with 51 additions and 0 deletions

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

@@ -0,0 +1,19 @@
backend:
name: git
repo: "/var/lib/gitea/data/gitea-repositories/xianliticn/qingshuige-hugo.git"
branch: main
auth_type: token
token: "94e6d08b325a713f9b3942d83539ec9f30b510b5"
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: "Date", name: "date", widget: "datetime" }
- { label: "Body", name: "body", widget: "markdown" }

13
static/admin/index.html Normal file
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>