Skip to content

Commit 5b2cff0

Browse files
authored
Merge pull request #12 from diesdasdigital/develop
Add fallback fields to og/twitter title and description
2 parents 4c22a89 + 12312ff commit 5b2cff0

File tree

14 files changed

+1356
-11263
lines changed

14 files changed

+1356
-11263
lines changed

blueprints/fields/open_graph.yml

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,20 +6,21 @@ fields:
66
numbered: false
77
og_title:
88
label: OG Title
9-
help: The title of your object as it should appear within the graph.
9+
help: The title of your object as it should appear within the graph. Will use *page title* as fallback.
1010
type: text
1111
og_description:
1212
label: OG Description
13-
help: A one to two sentence description of your object.
13+
help: A one to two sentence description of your object. Will use *page description* and *site description* as fallbacks.
1414
type: text
1515
og_image:
1616
label: OG Image (1200x630)
17-
help: An image which should represent your object within the graph. Will be cropped automatically.
17+
help: An image which should represent your object within the graph. Will be cropped automatically. Will use *site OG image* as fallback.
1818
type: files
1919
multiple: false
20+
uploads: seo-image
2021
og_site_name:
2122
label: OG Site Name
22-
help: If your object is part of a larger web site, the name which should be displayed for the overall site.
23+
help: If your object is part of a larger web site, the name which should be displayed for the overall site. Will use *site title* as fallback.
2324
type: text
2425
width: 1/2
2526
og_url:

blueprints/fields/twitter.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,18 +8,18 @@ fields:
88
label: Twitter Title
99
type: text
1010
limit: 70
11-
help: The title of your page as it should appear on Twitter
11+
help: The title of your page as it should appear on Twitter. Will use *page title* as fallback.
1212
twitter_description:
1313
label: Twitter Description
1414
type: text
1515
limit: 300
16-
help: A one to two sentence description of your page.
16+
help: A one to two sentence description of your page. Will use *page description* and *site description* as fallbacks.
1717
twitter_image:
1818
label: Twitter Image (1200x675)
1919
help: Will be cropped automatically.
2020
type: files
21+
uploads: seo-image
2122
multiple: false
22-
max: 1
2323
width: 1/2
2424
twitter_card_type:
2525
label: Card Type

blueprints/files/seo-image.yml

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
title: Image
2+
3+
accept:
4+
mime: image/jpeg, image/png
5+
6+
fields:
7+
alt:
8+
label: Alt Text
9+
type: text
10+
width: 1/2
11+
link:
12+
label: Link
13+
type: url
14+
width: 1/2
15+
caption:
16+
label: Caption
17+
type: textarea

index.css

Lines changed: 1 addition & 207 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)