add static CMS
This commit is contained in:
parent
dca1ce669b
commit
b92e518eaa
3 changed files with 1059 additions and 0 deletions
33
static/admin/config.yml
Normal file
33
static/admin/config.yml
Normal 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
14
static/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" />
|
||||
<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>
|
1012
static/admin/static-cms-app.js
Normal file
1012
static/admin/static-cms-app.js
Normal file
File diff suppressed because one or more lines are too long
Loading…
Reference in a new issue