mirror of
https://github.com/mastermindzh/rickvanlieshout.com
synced 2024-12-26 14:59:14 +01:00
fe9c81d10d
The gatsby lumen starter currently supports a `socialImage` field in markdown content that will set the `twitter:image` and `og:image` meta tags in the layout component. This PR adds an "Social Image" widget that allows users to set the socialImage field through the netlifycms admin page.
43 lines
1.6 KiB
YAML
43 lines
1.6 KiB
YAML
backend:
|
|
name: git-gateway
|
|
branch: master
|
|
|
|
media_folder: "static/media"
|
|
public_folder: "/media"
|
|
|
|
# Uncomment to leverage Netlify CMS UI authoring flow
|
|
# see: https://www.netlifycms.org/docs/configuration-options/#publish-mode
|
|
# publish_mode: editorial_workflow
|
|
|
|
collections:
|
|
- name: "posts"
|
|
label: "Posts"
|
|
folder: "content/posts"
|
|
create: true
|
|
slug: "{{year}}-{{month}}-{{day}}-{{slug}}"
|
|
preview_path: "posts/{{fields.slug}}"
|
|
fields:
|
|
- {label: "Template", name: "template", widget: "hidden", default: "post"}
|
|
- {label: "Title", name: "title", widget: "string"}
|
|
- {label: "Slug", name: "slug", widget: "string"}
|
|
- {label: "Social Image", name: "socialImage", widget: "image"}
|
|
- {label: "Draft", name: "draft", widget: "boolean", default: true}
|
|
- {label: "Publish Date", name: "date", widget: "datetime"}
|
|
- {label: "Description", name: "description", widget: "text"}
|
|
- {label: "Category", name: "category", widget: "string"}
|
|
- {label: "Body", name: "body", widget: "markdown"}
|
|
- {label: "Tags", name: "tags", widget: "list"}
|
|
|
|
- name: "pages"
|
|
label: "Pages"
|
|
folder: "content/pages"
|
|
create: true
|
|
slug: "{{slug}}"
|
|
fields:
|
|
- {label: "Template", name: "template", widget: "hidden", default: "page"}
|
|
- {label: "Title", name: "title", widget: "string"}
|
|
- {label: "Slug", name: "slug", widget: "string"}
|
|
- {label: "Social Image", name: "socialImage", widget: "image"}
|
|
- {label: "Draft", name: "draft", widget: "boolean", default: true}
|
|
- {label: "Body", name: "body", widget: "markdown"}
|