Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/vjeantet/hugo-theme-docport.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorvjeantet <valere.jeantet@gmail.com>2020-08-20 19:33:59 +0300
committervjeantet <valere.jeantet@gmail.com>2020-08-20 19:33:59 +0300
commit4565c6f130ae49bdb7c6efe88107f8ade4dda0e5 (patch)
treedb8523f94e5b372c8d58265867baaa90434316fc
parent4c855910f20610e292cfe306ee1fced52ec976a4 (diff)
netlify cms
-rw-r--r--exampleSite/static/admin/config.yml27
-rw-r--r--exampleSite/static/admin/index.html1
2 files changed, 20 insertions, 8 deletions
diff --git a/exampleSite/static/admin/config.yml b/exampleSite/static/admin/config.yml
index 89076e2..f7004c7 100644
--- a/exampleSite/static/admin/config.yml
+++ b/exampleSite/static/admin/config.yml
@@ -1,9 +1,9 @@
backend:
- name: github
+ name: git-gateway
repo: vjeantet/hugo-theme-docport
branch: master # Branch to update (optional; defaults to master)
-media_folder: static/images
-public_folder: /images
+media_folder: static/images/uploads
+public_folder: /images/uploads
publish_mode: editorial_workflow
site_url: https://docport.netlify.app
nested:
@@ -11,18 +11,29 @@ nested:
summary: '{{title}}' # optional summary for a tree node, defaults to the inferred title field
collections:
- name: 'pages'
- label: 'Pages'
+ label: 'Home'
+ label_singular: 'Page'
folder: 'exampleSite/content'
create: true
media_folder: ''
public_folder: ''
+ nested:
+ depth: 100 # max depth to show in the collection tree
+ summary: '{{title}}' # how menu is displayed in menu tree
+ summary: '{{title}}' # how page names are displayed
editor:
preview: true
- meta: { path: { widget: string, label: 'Path', index_file: '_index', pattern: ['.*', "Error"] } }
fields:
- - { label: 'Title', name: 'title', widget: 'string' }
- - { label: 'Publish Date', name: 'date', widget: 'datetime' }
+ - { label: 'Title', name: 'title', widget: 'string', default: '' }
- { label: 'Description', name: 'description', widget: 'string' }
+ - { label: 'Publish Date', name: 'date', widget: 'datetime' }
+ - { label: 'Display As', name: 'layout', widget: 'select',required: false, hint: 'Choose how to layout your content', options: [{ label: "Default (empty value)", value: "" },{ label: "Simple - hide right bar and breadcrumb ", value: "simple" }, { label: "Full - hide left nav, right nav and breadcrumb", value: "full" }, { label: "Raw - only the content will be displayed (usefull for homepage)", value: "raw" }]}
+ - { label: 'Is Subpage ?', name: 'subpage', widget: 'boolean',required: false, default: false, hint: 'Display this page as subcontent' }
+ - { label: 'Is Hidden ?', name: 'hidden', widget: 'boolean',required: false, default: false, hint: 'Hide this page from any menu' }
+ - { label: 'Menu Entry Head', name: 'head', widget: 'string', required: false, hint: 'Display something before menu entry' }
+ - { label: 'Menu label Prefix', name: 'pre', widget: 'string', required: false, hint: 'Display something before menu label' }
+ - { label: 'Menu label Suffix', name: 'post', widget: 'string', required: false, hint: 'Display something after menu label' }
+ - { label: 'Menu - Always open', name: 'alwaysopen', widget: 'boolean', required: false, default: false, hint: 'Open menu by default' }
- { label: 'Body', name: 'body', widget: 'markdown' }
-
+ meta: { path: { widget: string, label: 'Path', index_file: '_index', pattern: ['.*', "Error"] } }
diff --git a/exampleSite/static/admin/index.html b/exampleSite/static/admin/index.html
index aaed95a..26462aa 100644
--- a/exampleSite/static/admin/index.html
+++ b/exampleSite/static/admin/index.html
@@ -4,6 +4,7 @@
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Content Manager</title>
+ <script src="https://identity.netlify.com/v1/netlify-identity-widget.js"></script>
</head>
<body>
<!-- Include the script that builds the page and powers Netlify CMS -->