fix(cms): config
This commit is contained in:
@@ -0,0 +1,7 @@
|
|||||||
|
backend:
|
||||||
|
name: gitea
|
||||||
|
repo: admin/my-blog
|
||||||
|
branch: main
|
||||||
|
base_url: https://gitea.shay7sev.site
|
||||||
|
auth_type: token
|
||||||
|
token: 18067b7eb7befdf6711c28bf0cba648f28fa0887
|
||||||
|
|||||||
@@ -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
20
public/admin/config.yml
Normal 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
10
public/admin/index.html
Normal 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
20
static/admin/config.yml
Normal 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
10
static/admin/index.html
Normal 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>
|
||||||
Reference in New Issue
Block a user