mirror of
https://github.com/mastermindzh/rickvanlieshout.com
synced 2025-07-26 04:04:27 +02:00
Add social image widget to Netlify CMS config
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.
This commit is contained in:
@@ -20,6 +20,7 @@ collections:
|
||||
- {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"}
|
||||
@@ -36,5 +37,6 @@ collections:
|
||||
- {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"}
|
||||
- {label: "Body", name: "body", widget: "markdown"}
|
||||
|
Reference in New Issue
Block a user