diff options
author | Frederic Hemberger <mail@frederic-hemberger.de> | 2011-10-17 20:14:29 +0200 |
---|---|---|
committer | Frederic Hemberger <mail@frederic-hemberger.de> | 2011-10-17 20:14:29 +0200 |
commit | 35a598df038259af2dc2f07c828b44d7dd1281b5 (patch) | |
tree | 38a76ab67c6dc0b638d9b291960f390356dedd7d /.themes/classic | |
parent | 1362e9d57bb936b4762aed946a7d51bf3ee3ac90 (diff) | |
download | my_new_personal_website-35a598df038259af2dc2f07c828b44d7dd1281b5.tar.xz my_new_personal_website-35a598df038259af2dc2f07c828b44d7dd1281b5.zip |
Adds support for Google+ widget, supports author information in search results, fixes #203
Diffstat (limited to '')
-rw-r--r-- | .themes/classic/sass/partials/_sidebar.scss | 1 | ||||
-rw-r--r-- | .themes/classic/sass/partials/sidebar/_googleplus.scss | 26 | ||||
-rw-r--r-- | .themes/classic/source/_includes/asides/googleplus.html | 11 |
3 files changed, 38 insertions, 0 deletions
diff --git a/.themes/classic/sass/partials/_sidebar.scss b/.themes/classic/sass/partials/_sidebar.scss index ac790e04..eec540ba 100644 --- a/.themes/classic/sass/partials/_sidebar.scss +++ b/.themes/classic/sass/partials/_sidebar.scss @@ -1,4 +1,5 @@ @import "sidebar/base"; @import "sidebar/twitter"; +@import "sidebar/googleplus"; @import "sidebar/pinboard"; @import "sidebar/delicious"; diff --git a/.themes/classic/sass/partials/sidebar/_googleplus.scss b/.themes/classic/sass/partials/sidebar/_googleplus.scss new file mode 100644 index 00000000..c2a693ee --- /dev/null +++ b/.themes/classic/sass/partials/sidebar/_googleplus.scss @@ -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; +} diff --git a/.themes/classic/source/_includes/asides/googleplus.html b/.themes/classic/source/_includes/asides/googleplus.html new file mode 100644 index 00000000..00a0aa85 --- /dev/null +++ b/.themes/classic/source/_includes/asides/googleplus.html @@ -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 %} + |