install decap
This commit is contained in:
parent
8c8fbe88ab
commit
f5decbed31
2 changed files with 39 additions and 0 deletions
25
public/admin/config.yml
Normal file
25
public/admin/config.yml
Normal file
|
@ -0,0 +1,25 @@
|
|||
backend:
|
||||
name: gitea
|
||||
repo: nycki/nycki.net
|
||||
app_id: acac8250-0f2d-49c7-a95f-f453ed3ce2ba
|
||||
api_root: https://git.nycki.net/api/v1
|
||||
base_url: https://git.nycki.net
|
||||
auth_endpoint: https://git.nycki.net/login/oauth/authorize
|
||||
branch: main
|
||||
|
||||
media_folder: "public/a"
|
||||
|
||||
collections:
|
||||
- name: "blog"
|
||||
label: "blog"
|
||||
folder: "content/blog"
|
||||
create: true
|
||||
slug: "{{year}}-{{month}}-{{day}}-{{slug}}"
|
||||
fields:
|
||||
- { label: 'date', name: 'date', widget: 'datetime' }
|
||||
- { label: 'title', name: 'title', widget: 'string' }
|
||||
- { label: 'description', name: 'description', widget: 'string' }
|
||||
- { label: 'tags', name: 'tags', widget: 'list' }
|
||||
- { label: 'draft', name: 'draft', widget: 'boolean' }
|
||||
- { label: 'body', name: 'body', widget: 'markdown' }
|
||||
|
14
public/admin/index.html
Normal file
14
public/admin/index.html
Normal file
|
@ -0,0 +1,14 @@
|
|||
<!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…
Reference in a new issue