Commit 29ab203a authored by Kenton Varda's avatar Kenton Varda

Add G+ follow buttons to blog posts / site footer.

parent d120c701
......@@ -5,11 +5,22 @@
<!-- FOOTER -->
<div id="footer_wrap" class="outer">
<footer class="inner">
<p class="copyright">Cap'n Proto maintained by <a href="https://github.com/kentonv">kentonv</a></p>
<p class="copyright">Cap'n Proto maintained by <a href="https://github.com/kentonv">kentonv</a>
<span class="gplus-followbutton"><span class="g-follow" data-annotation="bubble" data-height="15" data-href="//plus.google.com/118187272963262049674" data-rel="author"></span></span></p>
<p>Design by <a href="http://www.starfruit-cafe.net/blog">sailorhg</a> ∙ Published with <a href="http://pages.github.com">GitHub Pages</a></p>
</footer>
</div>
<!-- Google+ follow button. -->
<script type="text/javascript">
(function() {
var po = document.createElement('script'); po.type = 'text/javascript'; po.async = true;
po.src = 'https://apis.google.com/js/plusone.js';
var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(po, s);
})();
</script>
<!-- Google Analytics. -->
<script type="text/javascript">
var gaJsHost = (("https:" == document.location.protocol) ? "https://ssl." : "http://www.");
document.write(unescape("%3Cscript src='" + gaJsHost + "google-analytics.com/ga.js' type='text/javascript'%3E%3C/script%3E"));
......
......@@ -8,6 +8,9 @@ href="https://groups.google.com/group/capnproto-announce">Stay Updated</a></div>
<h2>{{ page.title }}</h2>
<p class="author">
<a href="https://github.com/{{ page.author }}">{{ page.author }}</a>
{% if page.author == 'kentonv' %}
<span class="gplus-followbutton"><span class="g-follow" data-annotation="none" data-height="15" data-href="//plus.google.com/118187272963262049674" data-rel="author"></span></span>
{% endif %}
on <span class="date">{{ page.date | date_to_string }}</span>
</p>
{{ content }}
......
......@@ -13,6 +13,9 @@ href="https://groups.google.com/group/capnproto-announce">Stay Updated</a></div>
<h2><a href="/capnproto{{ post.url }}">{{ post.title }}</a></h2>
<p class="author">
<a href="https://github.com/{{ post.author }}">{{ post.author }}</a>
{% if post.author == 'kentonv' %}
<span class="gplus-followbutton"><span class="g-follow" data-annotation="none" data-height="15" data-href="//plus.google.com/118187272963262049674" data-rel="author"></span></span>
{% endif %}
on <span class="date">{{ post.date | date_to_string }}</span>
</p>
{{ post.content }}
......
/*******************************************************************************
Slate Theme for GitHub Pages
Site Design by @kentonv and @sailorhg.
Originally based on Slate Theme for GitHub Pages
by Jason Costello, @jsncostello
*******************************************************************************/
......@@ -163,9 +165,6 @@ pre, code {
border-radius: 2px;
-moz-border-radius: 2px;
-webkit-border-radius: 2px;
}
pre {
......@@ -264,6 +263,17 @@ p.author {
color: #888;
}
p.author>span.gplus-followbutton {
position: relative;
top: 3px;
}
p.copyright>span.gplus-followbutton {
position: relative;
top: 1px;
/* Yes, it's off by one goddamn pixel, you got a problem with that? */
}
h1>a, h2>a {
color: black;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment