添加项目文件
This commit is contained in:
19
static/admin/config.yml
Normal file
19
static/admin/config.yml
Normal 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
13
static/admin/index.html
Normal 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>
|
||||
Reference in New Issue
Block a user