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:
Ibraheem Ahmed 2020-09-11 18:34:03 -04:00 committed by GitHub
parent ed5b6f27d6
commit fe9c81d10d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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"}