mirror of
https://github.com/gcushen/hugo-academic.git
synced 2025-07-26 03:00:50 +02:00
feat(cms): add slides editor
Also, - filter out archive pages - add `squash_merges` - convert deprecated valueType to value_type
This commit is contained in:
parent
2d515e5fa5
commit
6c7237fc0a
2 changed files with 67 additions and 4 deletions
|
@ -1,6 +1,7 @@
|
|||
backend:
|
||||
name: git-gateway
|
||||
branch: master
|
||||
squash_merges: true
|
||||
media_folder: 'static/media'
|
||||
public_folder: '/media'
|
||||
collections:
|
||||
|
@ -22,7 +23,7 @@ collections:
|
|||
name: "weight"
|
||||
widget: "number"
|
||||
default: 10
|
||||
valueType: "int"
|
||||
value_type: "int"
|
||||
min: 0
|
||||
max: 1001
|
||||
step: 10
|
||||
|
@ -66,7 +67,7 @@ collections:
|
|||
name: "image_darken"
|
||||
widget: "number"
|
||||
default: 0.0
|
||||
valueType: "float"
|
||||
value_type: "float"
|
||||
min: 0.0
|
||||
max: 1.0
|
||||
step: 0.1
|
||||
|
@ -77,6 +78,7 @@ collections:
|
|||
label_singular: Author
|
||||
folder: 'content/authors'
|
||||
path: '{{slug}}/_index'
|
||||
filter: {field: "cms_exclude"}
|
||||
create: true # Allow users to create new documents in this collection
|
||||
fields: # The fields each document in this collection have
|
||||
- {label: "Display name (such as your full name)", name: "title", widget: "string"}
|
||||
|
@ -141,7 +143,7 @@ collections:
|
|||
fields:
|
||||
- {label: Course, name: course, widget: string, required: true}
|
||||
- {label: Institution, name: institution, widget: string, required: true}
|
||||
- {label: Year, name: year, widget: number, valueType: int, required: false}
|
||||
- {label: Year, name: year, widget: number, value_type: int, required: false}
|
||||
- {label: "Email (to use a Gravatar.com avatar)", name: "email", widget: "string", required: false}
|
||||
- label: "Super user (is this the primary site user?)"
|
||||
name: "superuser"
|
||||
|
@ -156,6 +158,7 @@ collections:
|
|||
label_singular: Post
|
||||
folder: 'content/post'
|
||||
path: '{{slug}}/index'
|
||||
filter: {field: "cms_exclude"}
|
||||
create: true # Allow users to create new documents in this collection
|
||||
fields: # The fields each document in this collection have
|
||||
- {label: "Title", name: "title", widget: "string"}
|
||||
|
@ -211,6 +214,7 @@ collections:
|
|||
label_singular: Project
|
||||
folder: 'content/project'
|
||||
path: '{{slug}}/index'
|
||||
filter: {field: "cms_exclude"}
|
||||
create: true # Allow users to create new documents in this collection
|
||||
fields: # The fields each document in this collection have
|
||||
- {label: "Title", name: "title", widget: "string"}
|
||||
|
@ -282,6 +286,7 @@ collections:
|
|||
label_singular: Event
|
||||
folder: 'content/event'
|
||||
path: '{{slug}}/index'
|
||||
filter: {field: "cms_exclude"}
|
||||
create: true # Allow users to create new documents in this collection
|
||||
fields: # The fields each document in this collection have
|
||||
- {label: "Title", name: "title", widget: "string"}
|
||||
|
@ -362,6 +367,7 @@ collections:
|
|||
label_singular: Publication
|
||||
folder: 'content/publication'
|
||||
path: '{{slug}}/index'
|
||||
filter: {field: "cms_exclude"}
|
||||
create: true # Allow users to create new documents in this collection
|
||||
fields: # The fields each document in this collection have
|
||||
- { label: "Title", name: "title", widget: "string" }
|
||||
|
@ -438,6 +444,50 @@ collections:
|
|||
- { label: "Summary (shortened abstract)", name: "summary", widget: "text", required: false }
|
||||
- {label: "Details", name: "body", widget: "markdown", required: false}
|
||||
- { label: "Publish this page on", name: "date", widget: "datetime" }
|
||||
- name: slides
|
||||
label: Slides
|
||||
label_singular: Slides
|
||||
folder: 'content/slides'
|
||||
path: '{{slug}}/index'
|
||||
filter: {field: "cms_exclude"}
|
||||
create: true # Allow users to create new documents in this collection
|
||||
fields: # The fields each document in this collection have
|
||||
- {label: "Title", name: "title", widget: "string"}
|
||||
- {label: "Slides (separate with `---`)", name: "body", widget: "markdown"}
|
||||
- {label: "Publish on", name: "date", widget: "datetime"}
|
||||
- {label: "Summary", name: "summary", widget: "text", required: false}
|
||||
- label: "Draft"
|
||||
name: "draft"
|
||||
widget: "boolean"
|
||||
default: false
|
||||
required: false
|
||||
- label: "Tags"
|
||||
name: "tags"
|
||||
required: false
|
||||
widget: "list"
|
||||
- label: "Slide options"
|
||||
name: "slides"
|
||||
required: false
|
||||
widget: object
|
||||
fields:
|
||||
- { label: "Theme (see https://github.com/hakimel/reveal.js#theming)", name: theme, widget: string, required: false, default: black }
|
||||
- label: "Featured Image"
|
||||
name: "image"
|
||||
required: false
|
||||
widget: object
|
||||
fields:
|
||||
- label: "Upload an image named `featured.jpg/png`"
|
||||
name: "filename"
|
||||
widget: "image"
|
||||
default: "featured"
|
||||
required: false
|
||||
media_library:
|
||||
config:
|
||||
multiple: false
|
||||
- {label: Caption, name: caption, widget: string, required: false}
|
||||
- {label: Description for screen readers, name: alt_text, widget: string, required: false}
|
||||
- {label: "Where's the focal point in the image? Smart, Center, TopLeft, Top, TopRight, Left, Right, BottomLeft, Bottom, BottomRight.", name: focal_point, widget: string, required: false, default: "Smart"}
|
||||
- {label: Thumbnail Only?, name: preview_only, widget: boolean, default: false, required: false}
|
||||
- name: pages
|
||||
label: "Pages"
|
||||
files:
|
||||
|
|
|
@ -4,8 +4,21 @@ module:
|
|||
imports:
|
||||
- path: github.com/wowchemy/wowchemy-hugo-modules/wowchemy
|
||||
outputs:
|
||||
home: [HTML, RSS, JSON, WebAppManifest]
|
||||
home: [HTML, RSS, JSON, WebAppManifest, headers, redirects]
|
||||
disableAliases: true
|
||||
taxonomies: []
|
||||
params:
|
||||
require_isotope: false
|
||||
day_night: true
|
||||
theme: minimal
|
||||
font: native
|
||||
main_menu:
|
||||
enable: false
|
||||
search:
|
||||
engine: 0
|
||||
security:
|
||||
csp:
|
||||
policy:
|
||||
report_only: false
|
||||
cms:
|
||||
netlify_cms: false
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue