-
-
Notifications
You must be signed in to change notification settings - Fork 14
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
2 changed files
with
44 additions
and
44 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,25 +1,37 @@ | ||
title: 'Globals SEO: Social Sharing - Generate Social Images' | ||
title: 'Globals SEO: Social Sharing - Defaults' | ||
fields: | ||
- | ||
handle: use_social_image_generation | ||
field: | ||
display: 'Use Social Images generation' | ||
type: toggle | ||
icon: toggle | ||
instructions: 'Enable Social Image generation. **Important**: you need to have Puppeteer and Browsershot installed.' | ||
handle: og_image | ||
field: common.image | ||
config: | ||
container: social_images | ||
localizable: true | ||
listable: hidden | ||
display: 'Social image' | ||
instructions_position: below | ||
instructions: 'The default OG image. Can be overridden per entry. The recommended size is 1200px x 630px. This image will be focal cropped to this dimension.' | ||
width: 50 | ||
- | ||
handle: twitter_image | ||
field: common.image | ||
config: | ||
container: social_images | ||
localizable: true | ||
listable: hidden | ||
display: 'Twitter image' | ||
instructions_position: below | ||
instructions: 'The default Twitter image. Can be overridden per entry. Images should have an aspect ratio of 2:1 with minimum dimensions of 300x157. This image will be focal cropped to this dimension.' | ||
width: 50 | ||
- | ||
handle: social_images_collections | ||
handle: twitter_handle | ||
field: | ||
mode: select | ||
display: 'Collections with Social Images' | ||
type: collections | ||
icon: collections | ||
instructions: 'Chosen collections will show a _Generate Social Images_ button in the collections overview.' | ||
instructions_position: below | ||
listable: hidden | ||
display: 'Twitter handle' | ||
width: 50 | ||
if: | ||
use_social_image_generation: 'equals true' | ||
input_type: text | ||
type: text | ||
localizable: true | ||
instructions: 'The Twitter user name that should be included with Twitter Card tags.' | ||
instructions_position: below | ||
prepend: '@' | ||
antlers: false |
44 changes: 16 additions & 28 deletions
44
resources/fieldsets/globals_seo_social_generate_social_images.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,37 +1,25 @@ | ||
title: 'Globals SEO: Social Sharing - Defaults' | ||
title: 'Globals SEO: Social Sharing - Generate Social Images' | ||
fields: | ||
- | ||
handle: og_image | ||
field: common.image | ||
config: | ||
container: social_images | ||
localizable: true | ||
listable: hidden | ||
display: 'Social image' | ||
handle: use_social_image_generation | ||
field: | ||
display: 'Use Social Images generation' | ||
type: toggle | ||
icon: toggle | ||
instructions: 'Enable Social Image generation. **Important**: you need to have Puppeteer and Browsershot installed.' | ||
instructions_position: below | ||
instructions: 'The default OG image. Can be overridden per entry. The recommended size is 1200px x 630px. This image will be focal cropped to this dimension.' | ||
width: 50 | ||
- | ||
handle: twitter_image | ||
field: common.image | ||
config: | ||
container: social_images | ||
localizable: true | ||
listable: hidden | ||
display: 'Twitter image' | ||
instructions_position: below | ||
instructions: 'The default Twitter image. Can be overridden per entry. Images should have an aspect ratio of 2:1 with minimum dimensions of 300x157. This image will be focal cropped to this dimension.' | ||
width: 50 | ||
- | ||
handle: twitter_handle | ||
handle: social_images_collections | ||
field: | ||
mode: select | ||
display: 'Collections with Social Images' | ||
type: collections | ||
icon: collections | ||
instructions: 'Chosen collections will show a _Generate Social Images_ button in the collections overview.' | ||
instructions_position: below | ||
listable: hidden | ||
display: 'Twitter handle' | ||
width: 50 | ||
input_type: text | ||
type: text | ||
localizable: true | ||
instructions: 'The Twitter user name that should be included with Twitter Card tags.' | ||
instructions_position: below | ||
prepend: '@' | ||
antlers: false | ||
if: | ||
use_social_image_generation: 'equals true' |