theme: upgrade to latest master - integrates Netlify Identity for Netlify CMS
Also, adds Netlify CMS support for talks.
This commit is contained in:
parent
142f1ef1b1
commit
2ca272d722
3 changed files with 90 additions and 7 deletions
|
@ -269,3 +269,10 @@ plugins_js = []
|
||||||
[marketing]
|
[marketing]
|
||||||
google_analytics = ""
|
google_analytics = ""
|
||||||
google_tag_manager = ""
|
google_tag_manager = ""
|
||||||
|
|
||||||
|
############################
|
||||||
|
## Content Management System
|
||||||
|
############################
|
||||||
|
[cms]
|
||||||
|
# See https://sourcethemes.com/academic/docs/install/#install-with-web-browser
|
||||||
|
netlify_cms = true
|
||||||
|
|
|
@ -12,17 +12,16 @@ collections:
|
||||||
create: true # Allow users to create new documents in this collection
|
create: true # Allow users to create new documents in this collection
|
||||||
fields: # The fields each document in this collection have
|
fields: # The fields each document in this collection have
|
||||||
- {label: "Title", name: "title", widget: "string"}
|
- {label: "Title", name: "title", widget: "string"}
|
||||||
- {label: "Publish Date", name: "date", widget: "datetime"}
|
|
||||||
- {label: "Subtitle", name: "subtitle", widget: "string"}
|
- {label: "Subtitle", name: "subtitle", widget: "string"}
|
||||||
|
- {label: "Body", name: "body", widget: "markdown"}
|
||||||
|
- {label: "Publish this page on", name: "date", widget: "datetime"}
|
||||||
- {label: "Summary", name: "summary", widget: "markdown"}
|
- {label: "Summary", name: "summary", widget: "markdown"}
|
||||||
- label: "Draft"
|
- label: "Draft"
|
||||||
name: "draft"
|
name: "draft"
|
||||||
required: false
|
|
||||||
widget: "boolean"
|
widget: "boolean"
|
||||||
default: false
|
default: false
|
||||||
- label: "Featured"
|
- label: "Featured"
|
||||||
name: "featured"
|
name: "featured"
|
||||||
required: false
|
|
||||||
widget: "boolean"
|
widget: "boolean"
|
||||||
default: false
|
default: false
|
||||||
- label: "Authors"
|
- label: "Authors"
|
||||||
|
@ -43,6 +42,7 @@ collections:
|
||||||
widget: "list"
|
widget: "list"
|
||||||
- label: "Featured Image"
|
- label: "Featured Image"
|
||||||
name: "image"
|
name: "image"
|
||||||
|
required: false
|
||||||
widget: object
|
widget: object
|
||||||
fields:
|
fields:
|
||||||
- label: "Upload an image named `featured.jpg/png`"
|
- label: "Upload an image named `featured.jpg/png`"
|
||||||
|
@ -55,9 +55,85 @@ collections:
|
||||||
- {label: Caption, name: caption, widget: string, required: false}
|
- {label: Caption, name: caption, widget: string, required: false}
|
||||||
- {label: Description for screen readers, name: alt_text, 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: "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, required: false, default: false}
|
- {label: Thumbnail Only?, name: preview_only, widget: boolean, default: false}
|
||||||
- {label: "Body", name: "body", widget: "markdown"}
|
- name: talks
|
||||||
- name: "pages"
|
label: Talks
|
||||||
|
label_singular: Talk
|
||||||
|
folder: 'content/talk'
|
||||||
|
path: '{{year}}/{{slug}}/index' # Store talks in year-based subfolders, e.g. `talk/2020/my-talk`.
|
||||||
|
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: "Abstract", name: "abstract", widget: "text"}
|
||||||
|
- {label: "Where", name: "location", widget: "text"}
|
||||||
|
- {label: "From", name: "date", widget: "datetime"}
|
||||||
|
- {label: "To", name: "date_end", widget: "datetime", default: ""}
|
||||||
|
- {label: "All day event?", name: "all_day", widget: "boolean", default: false}
|
||||||
|
- label: Links/Tickets
|
||||||
|
name: links
|
||||||
|
required: false
|
||||||
|
widget: list
|
||||||
|
fields:
|
||||||
|
- {label: Link, name: url, widget: string}
|
||||||
|
- {label: Link text, name: name, widget: string, required: false}
|
||||||
|
- label: Icon pack
|
||||||
|
name: icon_pack
|
||||||
|
widget: select
|
||||||
|
multiple: false
|
||||||
|
required: false
|
||||||
|
options:
|
||||||
|
- {label: "None", value: ""}
|
||||||
|
- {label: "Solid", value: "fas"}
|
||||||
|
- {label: "Regular", value: "far"}
|
||||||
|
- {label: "Brand", value: "fab"}
|
||||||
|
- {label: "Academic", value: "ai"}
|
||||||
|
- {label: Icon, name: icon, widget: string, required: false}
|
||||||
|
- {label: "Event", name: "event", widget: "string"}
|
||||||
|
- {label: "Event link", name: "event_url", widget: "string"}
|
||||||
|
- {label: "Publish this page on", name: "publishDate", widget: "datetime"}
|
||||||
|
- {label: "Markdown slides (reference a deck in 'content/slides/')", name: "slides", widget: "string", required: false}
|
||||||
|
- label: "Draft"
|
||||||
|
name: "draft"
|
||||||
|
widget: "boolean"
|
||||||
|
default: false
|
||||||
|
- label: "Featured"
|
||||||
|
name: "featured"
|
||||||
|
widget: "boolean"
|
||||||
|
default: false
|
||||||
|
- label: "Authors"
|
||||||
|
name: "authors"
|
||||||
|
required: false
|
||||||
|
widget: "list"
|
||||||
|
- label: "Tags"
|
||||||
|
name: "tags"
|
||||||
|
required: false
|
||||||
|
widget: "list"
|
||||||
|
- label: "Categories"
|
||||||
|
name: "categories"
|
||||||
|
required: false
|
||||||
|
widget: "list"
|
||||||
|
- label: "Projects (reference projects in 'content/project/')"
|
||||||
|
name: "projects"
|
||||||
|
required: false
|
||||||
|
widget: "list"
|
||||||
|
- label: "Featured Image"
|
||||||
|
name: "image"
|
||||||
|
required: false
|
||||||
|
widget: object
|
||||||
|
fields:
|
||||||
|
- label: "Upload an image named `featured.jpg/png`"
|
||||||
|
name: "filename"
|
||||||
|
widget: "image"
|
||||||
|
default: "featured"
|
||||||
|
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}
|
||||||
|
- {label: "Details", name: "body", widget: "markdown"}
|
||||||
|
- name: pages
|
||||||
label: "Pages"
|
label: "Pages"
|
||||||
files:
|
files:
|
||||||
- file: "content/privacy.md"
|
- file: "content/privacy.md"
|
||||||
|
|
|
@ -1 +1 @@
|
||||||
Subproject commit adb09f8dabc937afc240ae6c25b5288d95b6071c
|
Subproject commit 42d0e5f8cd130e52e2dfa496c199229a9f12d8cb
|
Loading…
Reference in a new issue