I would like to configure my Octopress blog to add an author link in the head element of all pages so that my Google+ picture will show up next to search results for my blog posts. Currently, I believe I could include a
<link rel="author" href="url/to/google/plus/profile">
in each post, but this gets tedious. Since every article on my blog is written by me, I would like the link above to just show up in the header of every Octopress page of my blog. Then on Google+ I can just list my blog as a site I contribute to, rather than listing that I contribute to each individual article.
I'm new to Google Authorship so maybe what I'm trying to do is not the best approach. My overall goal is simply to get my Google plus photo to appear next to all my Octopress blog articles in Google Search results and on Google+, list only my blog as a site I contribute to (not each individual article).
I learned that the Octopress built-in Google+ 3rd party plugin http://octopress.org/docs/configuring/#third_party supports establishing authorship and is probably the intended way for Octopress bloggers to add the desired functionality.
To use it you can change the Google+ section around line 80 in the _config.yml
file:
# Google Plus Profile
# Hidden: No visible button, just add author information to search results
googleplus_user: 111234567439674839635
googleplus_hidden: false
replacing the user number with your own, which you can find by going to your Google+ profile and copying the number in the address bar. Then, as long as you have added the URL of your Octopress blog to your "Contributor To" section on your Google+ profile page, your profile image should show up next to search results for your blog articles.
For reference on how Google Authorship works: http://searchengineland.com/the-definitive-guide-to-google-authorship-markup-123218
To see how your blog will show up in Google search results, you can use this testing richsnippet: http://www.google.com/webmasters/tools/richsnippets
I had erroniously set my googleplus_user url to be the full URL of my Google plus account without realizing it, so authorship was not working. Thus, I sought to manually add the <link>
tag in my original question.
You'll want to update the head.html template (provided in the octopress theme) file with your authorship markup.
https://github.com/imathis/octopress/blob/master/.themes/classic/source/_includes/head.html#L20
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With