diff --git a/netlify-cms-academic/static/admin/config.yml b/netlify-cms-academic/static/admin/config.yml index eb54fdf4..9e0da556 100644 --- a/netlify-cms-academic/static/admin/config.yml +++ b/netlify-cms-academic/static/admin/config.yml @@ -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: diff --git a/wowchemy/test/config.yaml b/wowchemy/test/config.yaml index 2754cb74..6f6ab524 100644 --- a/wowchemy/test/config.yaml +++ b/wowchemy/test/config.yaml @@ -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