🔧 Adds Netlify CMS basic config
This commit is contained in:
parent
d0b554e6c5
commit
18f24afbe6
28
public/admin/config.yml
Normal file
28
public/admin/config.yml
Normal file
|
@ -0,0 +1,28 @@
|
|||
backend:
|
||||
name: euromat
|
||||
branch: next
|
||||
accept_roles:
|
||||
- admin
|
||||
- editor
|
||||
media_folder: "static/img/uploads"
|
||||
public_folder: "/img/uploads"
|
||||
collections:
|
||||
- label: "Setup"
|
||||
name: "setup"
|
||||
files:
|
||||
- label: "Site Info"
|
||||
name: "info"
|
||||
format: 'json'
|
||||
file: "src/content/setup/info.json"
|
||||
fields:
|
||||
- {label: Site Name, name: sitename, widget: string}
|
||||
- {label: Site Description, name: sitedescription, widget: string}
|
||||
- {label: Site Icon (Must be 512x512 or larger square PNG), name: siteicon, widget: image,default: "/icon.png"}
|
||||
- {label: Show Icon in Menu, name: showmenu, widget: boolean}
|
||||
- label: Menu Links
|
||||
name: menu
|
||||
widget: list
|
||||
fields:
|
||||
- {label: Name, name: name, widget: string}
|
||||
- {label: Position, name: position, widget: string}
|
||||
- {label: Link, name: link, widget: string}
|
12
public/admin/index.html
Normal file
12
public/admin/index.html
Normal file
|
@ -0,0 +1,12 @@
|
|||
<!doctype html>
|
||||
<html>
|
||||
<head>
|
||||
<meta charset="utf-8" />
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
||||
<title>Content Manager</title>
|
||||
</head>
|
||||
<body>
|
||||
<!-- Include the script that builds the page and powers Netlify CMS -->
|
||||
<script src="https://unpkg.com/netlify-cms@^2.0.0/dist/netlify-cms.js"></script>
|
||||
</body>
|
||||
</html>
|
Loading…
Reference in a new issue