New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add tags to JSON metadata #151
Changes from 2 commits
f82ea47
8d2febf
2ddab03
4868d22
30d4ffc
a2a2c56
8cc9b2d
9aa2cbf
10d5f82
b04f739
fd5246a
5437934
644e976
a0f6588
da498c7
987e1ea
6ebc866
cc02710
8e36fe4
ba16b95
a847a69
318de34
4c577ff
02eb926
3410fee
c31f4c6
89aad3b
74c2d3d
0b289b8
e8e54a9
48ba285
ac0886d
bc32658
6009b49
9ec685a
61d4c91
5b2e8f3
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -62,6 +62,9 @@ | |
{% endif %} | ||
{% endif %} | ||
{% assign seo_author_twitter = seo_author_twitter | replace:"@","" %} | ||
{% if seo_author.name %} | ||
{% assign seo_author_name = seo_author.name %} | ||
{% endif %} | ||
{% endif %} | ||
|
||
{% if page.seo and page.seo.type %} | ||
|
@@ -206,6 +209,10 @@ | |
"headline": {{ seo_page_title | jsonify }}, | ||
{% endif %} | ||
|
||
{% if seo_author_name %} | ||
"author": {{ seo_author_name | jsonify }}, | ||
{% endif %} | ||
|
||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Add Author Name |
||
{% if seo_page_image %} | ||
"image": {{ seo_page_image | jsonify }}, | ||
{% endif %} | ||
|
@@ -221,6 +228,9 @@ | |
{% if seo_site_logo %} | ||
"publisher": { | ||
"@type": "Organization", | ||
{% if seo_author_name %} | ||
"Name": {{ seo_author_name | jsonify }}, | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Shouldn't this be There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Yes. It should. I'll change that shortly. |
||
{% endif %} | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Add Author Name. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I understand Google's Structured Data Testing Tool requires publisher to be an Organization while Schema.org spec allows Person. So I have to ask, should publisher as an Organization be a person's name, or the site name? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I suppose it depends how your website is created. A valid point. |
||
"logo": { | ||
"@type": "ImageObject", | ||
"url": {{ seo_site_logo | jsonify }} | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Add Author Name