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

config.yml « admin « static « exampleSite - github.com/vjeantet/hugo-theme-docport.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 4719e46fdf3ca6ba8b01951db3281881855e2179 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
backend:
  name: github
  repo: vjeantet/hugo-theme-docport
  open_authoring: true
media_folder: static/images/uploads
public_folder: /images/uploads
publish_mode: editorial_workflow
site_url: https://docport.netlify.app
nested:
      depth: 100 # max depth to show in the collection tree
      summary: '{{title}}' # optional summary for a tree node, defaults to the inferred title field
collections:
  - name: '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
    fields:
      - { label: 'Title', name: 'title', widget: 'string', default: '' }
      - { label: 'Description', name: 'description', widget: 'string' }
      - { label: 'Publish Date', name: 'date', widget: 'datetime' }
      - { label: 'Order', name: 'weight', widget: 'number', default: 10,required: false }
      - { label: 'Body', name: 'body', widget: 'markdown' }
      - { label: 'Hide page components', name: 'hide', widget: 'select',required: false, multiple: true, hint: 'Choose how to layout your content', options: [{ label: "Header", value: "header" },{ label: "Left menu ", value: "nav" }, { label: "breadcrumb", value: "breadcrumb" }, { label: "right bar with table of content", value: "breadcrumb" }, { label: "Next Page Helper", value: "nextpage" }, { label: "footer", value: "footer" }]}
      - { label: 'Force display as a 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' }
    meta: { path: { widget: string, label: 'Path', index_file: '_index', pattern: ['.*', "Error"] } }