accessible.tips/themes/hugo-xmin/static/admin/desktop/config.yml

133 lines
4.3 KiB
YAML
Raw Normal View History

site_url: https://kb.accessible.tips
display_url: https://kb.accessible.tips
media_folder: "static/uploads"
public_folder: "/uploads"
search: false
backend:
name: git-gateway
branch: main
collections:
- name: "blog" # Used in routes, e.g., /admin/collections/blog
label: "Blog" # Used in the UI
folder: "content/posts" # The path to the folder where the documents are stored
create: true # Allow users to create new documents in this collection
slug: "{{year}}-{{month}}-{{day}}-{{slug}}" # Filename template, e.g., YYYY-MM-DD-title.md
show_preview_links: true
preview_path: "posts/{{slug}}"
fields: # The fields for each document, usually in front matter
- {label: "Layout", name: "layout", widget: "hidden", default: "post", required: true}
- {label: "Title", name: "title", widget: "string", required: true}
- name: authors
label: Authors
widget: list
required: true
collapsed: false
fields:
- name: author
label: Author
widget: string
- {label: "Publish Date", name: "publishDate", widget: "datetime", date_format: 'yyyy-MM-dd', time_format: false, required: true}
- {label: "Last Modified", name: "lastMod", widget: "datetime", date_format: 'yyyy-MM-dd', time_format: false, required: true}
- {label: "Show TOC?", name: "toc", widget: "boolean", default: true}
- {label: "Draft?", name: "draft", widget: "boolean", default: true}
- name: categories
label: Categories
widget: list
allow_add: false
allow_delete: false
collapsed: true
default:
- 'blog'
fields:
- name: category
label: Category
widget: string
- name: tags
label: Tags
widget: list
required: true
collapsed: false
fields:
- name: tag
label: Tag
widget: string
2023-03-19 17:11:02 +00:00
- name: body
label: Content
2023-03-19 17:11:02 +00:00
widget: markdown
default: >-
## Changelog
{{< changelog >}}
{{< change 2000-12-30 "change 1" >}}
{{< change 2000-12-31 "change 2" >}}
{{< /changelog >}}
{{< end_section >}}
2023-03-19 16:57:54 +00:00
- name: "tips" # Used in routes, e.g., /admin/collections/blog
label: "Tips" # Used in the UI
folder: "content/tips" # The path to the folder where the documents are stored
create: true # Allow users to create new documents in this collection
slug: "{{slug}}" # Filename template, e.g., YYYY-MM-DD-title.md
show_preview_links: true
preview_path: "tips/{{slug}}"
fields: # The fields for each document, usually in front matter
- {label: "Layout", name: "layout", widget: "hidden", default: "post", required: true}
- {label: "Title", name: "title", widget: "string", required: true}
- name: authors
label: Authors
widget: list
required: true
collapsed: false
fields:
- name: author
label: Author
widget: string
- {label: "Publish Date", name: "publishDate", widget: "datetime", date_format: 'yyyy-MM-dd', time_format: false, required: true}
- {label: "Last Modified", name: "lastMod", widget: "datetime", date_format: 'yyyy-MM-dd', time_format: false, required: true}
2023-03-19 16:57:54 +00:00
- {label: "Show TOC?", name: "toc", widget: "boolean", default: true}
- {label: "Draft?", name: "draft", widget: "boolean", default: true}
- name: categories
label: Categories
widget: list
allow_add: true
allow_delete: true
collapsed: true
default:
- 'tips'
fields:
- name: category
label: Category
widget: string
- name: tags
label: Tags
widget: list
required: true
collapsed: false
fields:
- name: tag
label: Tag
widget: string
2023-03-19 17:11:02 +00:00
- name: body
label: Content
2023-03-19 17:11:02 +00:00
widget: markdown
default: >-
## Changelog
{{< changelog >}}
{{< change 2000-12-30 "change 1" >}}
{{< change 2000-12-31 "change 2" >}}
{{< /changelog >}}
{{< end_section >}}