diff options
| author | Mathias Biilmann Christensen <info@mathias-biilmann.net> | 2017-12-07 00:21:51 -0800 |
|---|---|---|
| committer | Benaiah Mischenko <benaiah@mischenko.com> | 2017-12-07 01:43:09 -0800 |
| commit | d91206659bd17c190e2940a2c564f371cafc7ebc (patch) | |
| tree | 3ae40f7a9c2668fb4ffaaa7fdd2746e8e5ccb267 /site/static/admin/config.yml | |
| parent | 3dc23ec6642f8238a9bb3e618544108cddcf2791 (diff) | |
Update hugo and content structure; add home page to CMS
This updates to hugo v0.31
It also adapts the content model to follow the convention for sections
with _index.md files and makes the home page a fully editable section
Diffstat (limited to 'site/static/admin/config.yml')
| -rw-r--r-- | site/static/admin/config.yml | 31 |
1 files changed, 22 insertions, 9 deletions
diff --git a/site/static/admin/config.yml b/site/static/admin/config.yml index cdb089e..bf0f03d 100644 --- a/site/static/admin/config.yml +++ b/site/static/admin/config.yml @@ -18,13 +18,30 @@ collections: # A list of collections the CMS should be able to edit - name: "pages" label: "Pages" files: - - file: "site/content/contact.md" + - file: "site/content/_index.md" + label: "Home Page" + name: "home" + fields: + - {label: Title, name: title, widget: string} + - {label: Subtitle, name: subtitle, widget: string} + - {label: Image, name: image, widget: image} + - {label: "Blurb", name: blurb, widget: object, fields: [ + {label: "Heading", name: "heading", widget: string}, + {label: "Text", name: "text", widget: "text"}]} + - {label: "Intro", name: intro, widget: object, fields: [ + {label: "Heading", name: "heading", widget: string}, + {label: "Text", name: "text", widget: "text"}]} + - {label: "Products", name: products, widget: list, fields: [ + {label: "Image", name: "image", widget: "image"}, + {label: "Text", name: "text", widget: "text"}]} + - {label: "Values", name: "values", widget: "object", fields: [ + {label: "Heading", name: "heading", widget: string}, + {label: "Text", name: "text", widget: "text"}]} + - file: "site/content/contact/_index.md" label: "Contact Page" name: "contact" fields: - {label: Title, name: title, widget: string} - - {label: Type, name: type, widget: hidden, default: contact} - - {label: Page, name: page, widget: hidden, default: "/contact.html"} - {label: Logo, name: logo, widget: image} - {label: Body, name: body, widget: markdown} - label: Contact Entries @@ -37,13 +54,11 @@ collections: # A list of collections the CMS should be able to edit - label: Text name: text widget: text - - file: "site/content/products.md" + - file: "site/content/products/_index.md" label: "Products Page" name: "products" fields: - {label: Title, name: title, widget: string} - - {label: Type, name: type, widget: hidden, default: products} - - {label: Page, name: page, widget: hidden, default: "/products.html"} - {label: Image, name: image, widget: image} - {label: Heading, name: heading, widget: string} - {label: Description, name: description, widget: string} @@ -52,13 +67,11 @@ collections: # A list of collections the CMS should be able to edit - {label: Testimonials, name: testimonials, widget: list, fields: [{label: Quote, name: quote, widget: string}, {label: Author, name: author, widget: string}]} - {label: Full_image, name: full_image, widget: image} - {label: Pricing, name: pricing, widget: object, fields: [{label: Heading, name: heading, widget: string}, {label: Description, name: description, widget: string}, {label: Plans, name: plans, widget: list, fields: [{label: Plan, name: plan, widget: string}, {label: Price, name: price, widget: string}, {label: Description, name: description, widget: string}, {label: Items, name: items, widget: list}]}]} - - file: "site/content/values.md" + - file: "site/content/values/_index.md" label: "Values Page" name: "values" fields: - {label: Title, name: title, widget: string} - - {label: Type, name: type, widget: hidden, default: values} - - {label: Page, name: page, widget: hidden, default: "/values.html"} - {label: Image, name: image, widget: image} - label: Values name: values |
