Browse code

Adds support for Google+ widget, supports author information in search results, fixes #203

Frederic Hemberger authored on 17/10/2011 at 18:14:29
Showing 4 changed files
... ...
@@ -1,4 +1,5 @@
1 1
 @import "sidebar/base";
2 2
 @import "sidebar/twitter";
3
+@import "sidebar/googleplus";
3 4
 @import "sidebar/pinboard";
4 5
 @import "sidebar/delicious";
5 6
new file mode 100644
... ...
@@ -0,0 +1,26 @@
0
+.googleplus {
1
+  h1 {
2
+       -moz-box-shadow: none !important;
3
+    -webkit-box-shadow: none !important;
4
+         -o-box-shadow: none !important;
5
+            box-shadow: none !important;
6
+    border-bottom: 0px none !important;
7
+  }
8
+  a {
9
+    text-decoration: none;
10
+    white-space: normal !important;
11
+    line-height: 32px;
12
+
13
+    img {
14
+      float: left;
15
+      margin-right: 0.5em;
16
+      border: 0 none;
17
+    }
18
+  }
19
+}
20
+
21
+.googleplus-hidden {
22
+  position: absolute;
23
+  top: -1000em;
24
+  left: -1000em;
25
+}
0 26
new file mode 100644
... ...
@@ -0,0 +1,11 @@
0
+{% if site.googleplus_user %}
1
+<section class="googleplus{% if site.googleplus_hidden %} googleplus-hidden{% endif %}">
2
+  <h1>
3
+    <a href="https://plus.google.com/{{ site.googleplus_user }}?rel=author">
4
+      <img src="http://www.google.com/images/icons/ui/gprofile_button-32.png" width="32" height="32">
5
+      Google+
6
+    </a>
7
+  </h1>
8
+</section>
9
+{% endif %}
10
+
... ...
@@ -38,7 +38,7 @@ titlecase: true       # Converts page and post titles to tilecase
38 38
 
39 39
 # list each of the sidebar modules you want to include, in the order you want them to appear.
40 40
 # To add custom asides, create files in /source/_includes/custom/asides/ and add them to the list like 'custom/asides/custom_aside_name.html'
41
-default_asides: [asides/recent_posts.html, asides/github.html, asides/twitter.html, asides/delicious.html, asides/pinboard.html]
41
+default_asides: [asides/recent_posts.html, asides/github.html, asides/twitter.html, asides/delicious.html, asides/pinboard.html, asides/googleplus.html]
42 42
 
43 43
 # Each layout uses the default asides, but they can have their own asides instead. Simply uncomment the lines below
44 44
 # and add an array with the asides you want to use.
... ...
@@ -64,10 +64,15 @@ twitter_follow_button: true
64 64
 twitter_show_follower_count: false
65 65
 twitter_tweet_button: true
66 66
 
67
-# Google Plus
67
+# Google +1
68 68
 google_plus_one: true
69 69
 google_plus_one_size: medium
70 70
 
71
+# Google Plus Profile
72
+# Hidden: No visible button, just add author information to search results
73
+googleplus_user:
74
+googleplus_hidden: false
75
+
71 76
 # Pinboard
72 77
 pinboard_user:
73 78
 pinboard_count: 3