diff --git a/admin/config.yml b/admin/config.yml index 7d0acf3c..a0d5013d 100644 --- a/admin/config.yml +++ b/admin/config.yml @@ -4,7 +4,7 @@ backend: branch: master base_url: https://github-oauth2.orionrobots.co.uk # This line should *not* be indented (for draft/review/publish workflow) -# publish_mode: editorial_workflow +# publish_mode: editorial_workflow media_folder: "galleries" collections: - name: "blog" @@ -12,11 +12,8 @@ collections: folder: "_posts" create: true slug: "{{year}}-{{month}}-{{day}}-{{slug}}" + path: "{{year}}/{{slug}}" fields: - - label: "Layout" - name: "layout" - widget: "hidden" - default: "post" - label: "Title" name: "title" widget: "string" @@ -32,12 +29,43 @@ collections: widget: "list" summary: "{{fields.tag}}" field: { label: "Tag", name: "tag", widget: "string" } - - label: "Category" - name: "category" + - label: "Thumbnail" + name: "thumbnail" + required: false + widget: "image" + allow_multiple: false + - label: "Body" + name: "body" + widget: "markdown" + view_groups: + - label: Year + field: date + # groups items based on the value matched by the pattern + pattern: \d{4} + - name: "blog_sub" + label: "Blog in subfolder" + folder: "_posts" + slug: "{{year}}-{{month}}-{{day}}-{{slug}}" + path: "{{year}}/{{slug}}/{{slug}}" + create: true + fields: + - label: "Title" + name: "title" + widget: "string" + - label: "Publish Date" + name: "date" + widget: "datetime" + - label: "Description" + name: "description" widget: "string" required: false + - label: "Tags" + name: "tags" + widget: "list" + summary: "{{fields.tag}}" + field: { label: "Tag", name: "tag", widget: "string" } - label: "Thumbnail" - name: "thumb" + name: "thumbnail" required: false widget: "image" allow_multiple: false