add static CMS

This commit is contained in:
Quentin 2023-02-21 16:21:51 +01:00
parent dca1ce669b
commit b92e518eaa
Signed by: quentin
GPG key ID: E9602264D639FF68
3 changed files with 1059 additions and 0 deletions

33
static/admin/config.yml Normal file
View file

@ -0,0 +1,33 @@
backend:
name: gitea
repo: foobar/guide.web.vimaire.machine.dufour.io
base_url: http://teabag.vimaire.machine.dufour.io
api_root: http://git.vimaire.machine.dufour.io/api/v1
branch: main
media_folder: 'static/img/'
site_url: http://guide.web.vimaire.machine.dufour.io
display_url: http://guide.web.vimaire.machine.dufour.io
locale: 'en'
collections:
- name: 'wiki'
label: 'Wiki'
folder: 'content'
editor:
preview: false
create: true
nested:
depth: 10
summary: '{{ title }}'
fields:
- label: Title
name: title
widget: string
- label: Weight
name: weight
widget: number
- label: Body
name: body
widget: markdown
meta: { path: { widget: string, label: 'Path', index_file: '_index' } }

14
static/admin/index.html Normal file
View file

@ -0,0 +1,14 @@
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Content Manager</title>
<!-- Include the identity widget -->
</head>
<body>
<!-- Include the script that builds the page and powers Netlify CMS -->
<script src="static-cms-app.js"></script>
<script>CMS.init()</script>
</body>
</html>

File diff suppressed because one or more lines are too long