Permalink
Browse files

Add optional post footer, closes #87.

  • Loading branch information...
johno committed Oct 15, 2014
1 parent 3d1790c commit 5658edc172e180c8d044c569096fa03e88cf839a
Showing with 41 additions and 9 deletions.
  1. +14 −9 _config.yml
  2. +10 −0 _includes/post_footer.html
  3. +4 −0 _layouts/post.html
  4. +13 −0 _sass/_main.scss
  5. BIN images/me.jpeg
View
@@ -1,17 +1,22 @@
# Site settings
title: Pixyll
email: your_email@example.com
author: John Otander
title: Pixyll
email: your_email@example.com
author: John Otander
description: "A simple, beautiful theme for Jekyll that emphasizes content rather than aesthetic fluff."
baseurl: ""
url: "http://pixyll.com"
baseurl: ""
url: "http://pixyll.com"
# Google analytics
google_analytics:
animated: false
# Optional features
animated: false
show_related_posts: false
show_post_footers: false
# Build settings
markdown: kramdown
permalink: pretty
paginate: 3
markdown: kramdown
permalink: pretty
paginate: 3
sass:
compressed: true
View
@@ -0,0 +1,10 @@
<div class="py2 post-footer">
<img src="/images/me.jpeg" alt="John Otander" class="avatar" />
<p>
Pixyll is an open-source Jekyll theme that's built by <a href="http://johnotander.com">John Otander</a>.
When he's not writing code and building things, he likes to ski. A. Lot.
</p>
<p>
Follow him on <a href="https://twitter.com/4lpine">Twitter</a>.
</p>
</div>
View
@@ -20,6 +20,10 @@ <h1 class="py2">{{ page.title }}</h1>
{{ content }}
</article>
{% if site.show_post_footers %}
{% include post_footer.html %}
{% endif %}
{% if site.show_related_posts %}
<h3 class="related-post-title">Related Posts</h3>
{% for post in site.related_posts %}
View
@@ -114,6 +114,19 @@ body {
color: #333;
}
.post-footer {
@extend .italic;
margin-top: .75rem;
text-align: center;
}
.post-footer .avatar {
margin: 2rem 0;
width: 100px;
border-radius: 50%;
}
.pagination,
.button {
font-size: 1rem;
View
Binary file not shown.

0 comments on commit 5658edc

Please sign in to comment.