Skip to content

Commit

Permalink
Add optional post footer, closes barryclark#87.
Browse files Browse the repository at this point in the history
  • Loading branch information
johno committed Oct 15, 2014
1 parent 3d1790c commit 5658edc
Show file tree
Hide file tree
Showing 5 changed files with 41 additions and 9 deletions.
23 changes: 14 additions & 9 deletions _config.yml
Original file line number Diff line number Diff line change
@@ -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
10 changes: 10 additions & 0 deletions _includes/post_footer.html
Original file line number Diff line number Diff line change
@@ -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>
4 changes: 4 additions & 0 deletions _layouts/post.html
Original file line number Diff line number Diff line change
Expand Up @@ -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 %}
Expand Down
13 changes: 13 additions & 0 deletions _sass/_main.scss
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
Binary file added images/me.jpeg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 5658edc

Please sign in to comment.