Skip to content

Commit

Permalink
Adds support for Google+ widget, supports author information in searc…
Browse files Browse the repository at this point in the history
…h results, fixes imathis#203
  • Loading branch information
fhemberger committed Oct 17, 2011
1 parent 1362e9d commit 35a598d
Show file tree
Hide file tree
Showing 4 changed files with 45 additions and 2 deletions.
1 change: 1 addition & 0 deletions .themes/classic/sass/partials/_sidebar.scss
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
@import "sidebar/base";
@import "sidebar/twitter";
@import "sidebar/googleplus";
@import "sidebar/pinboard";
@import "sidebar/delicious";
26 changes: 26 additions & 0 deletions .themes/classic/sass/partials/sidebar/_googleplus.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
.googleplus {
h1 {
-moz-box-shadow: none !important;
-webkit-box-shadow: none !important;
-o-box-shadow: none !important;
box-shadow: none !important;
border-bottom: 0px none !important;
}
a {
text-decoration: none;
white-space: normal !important;
line-height: 32px;

img {
float: left;
margin-right: 0.5em;
border: 0 none;
}
}
}

.googleplus-hidden {
position: absolute;
top: -1000em;
left: -1000em;
}
11 changes: 11 additions & 0 deletions .themes/classic/source/_includes/asides/googleplus.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
{% if site.googleplus_user %}
<section class="googleplus{% if site.googleplus_hidden %} googleplus-hidden{% endif %}">
<h1>
<a href="https://plus.google.com/{{ site.googleplus_user }}?rel=author">
<img src="http://www.google.com/images/icons/ui/gprofile_button-32.png" width="32" height="32">
Google+
</a>
</h1>
</section>
{% endif %}

9 changes: 7 additions & 2 deletions _config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ titlecase: true # Converts page and post titles to tilecase

# list each of the sidebar modules you want to include, in the order you want them to appear.
# To add custom asides, create files in /source/_includes/custom/asides/ and add them to the list like 'custom/asides/custom_aside_name.html'
default_asides: [asides/recent_posts.html, asides/github.html, asides/twitter.html, asides/delicious.html, asides/pinboard.html]
default_asides: [asides/recent_posts.html, asides/github.html, asides/twitter.html, asides/delicious.html, asides/pinboard.html, asides/googleplus.html]

# Each layout uses the default asides, but they can have their own asides instead. Simply uncomment the lines below
# and add an array with the asides you want to use.
Expand All @@ -64,10 +64,15 @@ twitter_follow_button: true
twitter_show_follower_count: false
twitter_tweet_button: true

# Google Plus
# Google +1
google_plus_one: true
google_plus_one_size: medium

# Google Plus Profile
# Hidden: No visible button, just add author information to search results
googleplus_user:
googleplus_hidden: false

# Pinboard
pinboard_user:
pinboard_count: 3
Expand Down

0 comments on commit 35a598d

Please sign in to comment.