-
Notifications
You must be signed in to change notification settings - Fork 484
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
Google rel="publisher" shall be link tag #282
Google rel="publisher" shall be link tag #282
Conversation
Actual Google rel="publisher" is generated as <meta> tag. This causes errors in HTML5 validation because <meta> has no attribute "rel" and also, <meta> shall have a name, itemprop, property or http-equive attributes. Changing it to <link> tag solves these validations errors and makes Google rich snippets work. It is important to notie that rel="publisher" is meant to link a Google+ business page and not to individuals G+ page. I don´t know if this affects or not the result but for future we shall think in have a 'business' property in theme _config.yml and author´s as already set. Then we might create rel="publisher" pointing to the business and rel="author" linking to author´s G+ page. Signed-off-by: Josenivaldo Benito Jr <jrbenito@benito.qsl.br>
This modification adds `author.google_plus_business` and puts it into `rel=plublisher` tag if set in _config.yml. Note: This is compatible with old _config.yml because if new property is not set it uses old one instead (`author.google_plus`). Signed-off-by: Josenivaldo Benito Jr <jrbenito@benito.qsl.br>
@LouisBarranqueiro this substitutes #276 |
I forgot to mention, Google has dropped authorship in SERPs and as per their declarations, "rel=author" is now being ignored by Google. However, "rel=publisher" and schema.org markups are still valid. Hence, this patch keep "rel=publisher" and does not care about "rel=author" as we first thought to do. |
Hey buddy, can we link 2 publishers in a page, in the case, the user filled the 2 fields?
it evaluate to true if
|
Hey!
Thanks for point my dumb and blind copy&paste.
👍 Nice! Thanks
I don´t think so, in fact, as far as I can tell the publisher has effect with G+ business pages but its effect with personal page is not clear. Since theme already use personal page in the publisher link, I though to keep compatibility with older versions by choosing between both. In other words: if the user does not have a business page or already set the business page to Anyway, we need still set publisher and author of BlogPosting schem using those two variables. I will try to PR this one too. |
Correct attribuition of publisher Signed-off-by: Josenivaldo Benito Jr <jrbenito@benito.qsl.br>
Thanks :) |
Configuration
Changes proposed
Actual Google rel="publisher" is generated as tag. This causes
errors in HTML5 validation because has no attribute "rel" and
also, shall have a name, itemprop, property or http-equive
attributes. Changing it to tag solves these validations errors.
It is important to notice that rel="publisher" is meant to link a Google+
business page and not to individuals G+ page. So a new property was
created to hold G+ business page and put it in this tag if available.
Notice: This is compatible with old behavior since if no business page is provided the personal business page is linked as before. No functionality break.
Signed-off-by: Josenivaldo Benito Jr jrbenito@benito.qsl.br