Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in / Register
Toggle navigation
C
capnproto
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Packages
Packages
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
submodule
capnproto
Commits
29ab203a
Commit
29ab203a
authored
Jun 28, 2013
by
Kenton Varda
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add G+ follow buttons to blog posts / site footer.
parent
d120c701
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
32 additions
and
5 deletions
+32
-5
footer.html
doc/_includes/footer.html
+12
-1
post.html
doc/_layouts/post.html
+3
-0
index.html
doc/news/index.html
+3
-0
stylesheet.css
doc/stylesheets/stylesheet.css
+14
-4
No files found.
doc/_includes/footer.html
View file @
29ab203a
...
...
@@ -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"
));
...
...
doc/_layouts/post.html
View file @
29ab203a
...
...
@@ -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 }}
...
...
doc/news/index.html
View file @
29ab203a
...
...
@@ -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 }}
...
...
doc/stylesheets/stylesheet.css
View file @
29ab203a
/*******************************************************************************
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
;
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment