add decap cms
This commit is contained in:
parent
344c8c3fe3
commit
7e5499b5c9
4 changed files with 42 additions and 37 deletions
21
public/admin/config.yml
Normal file
21
public/admin/config.yml
Normal file
|
|
@ -0,0 +1,21 @@
|
|||
backend:
|
||||
name: gitea
|
||||
repo: aleidk/blog-content
|
||||
app_id: baae6ee4-8fa3-4e14-9523-130a006d2478
|
||||
api_root: 'https://codeberg.org/api/v1'
|
||||
base_url: 'https://codeberg.org'
|
||||
branch: main
|
||||
media_folder: src/content/attachments
|
||||
collections:
|
||||
- name: posts
|
||||
label: Blog Posts
|
||||
folder: src/pages/blog
|
||||
create: true
|
||||
delete: true
|
||||
fields:
|
||||
- name: title
|
||||
widget: string
|
||||
label: Post Title
|
||||
- name: body
|
||||
widget: markdown
|
||||
label: Post Body
|
||||
16
public/admin/index.html
Normal file
16
public/admin/index.html
Normal file
|
|
@ -0,0 +1,16 @@
|
|||
<!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>
|
||||
Loading…
Add table
Add a link
Reference in a new issue