aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFrederic Hemberger <mail@frederic-hemberger.de>2011-10-16 14:27:21 +0200
committerFrederic Hemberger <mail@frederic-hemberger.de>2011-10-16 14:27:21 +0200
commit2812bf7c3e4a0496e48767f2368633b31a373e5f (patch)
treebc5fd68765a4f2f25d7dc1dc4c2c1f30a3ee66d0
parentd84daa2a882e238edc40871d0fdd2f41ff9f51a8 (diff)
downloadmy_new_personal_website-2812bf7c3e4a0496e48767f2368633b31a373e5f.tar.xz
my_new_personal_website-2812bf7c3e4a0496e48767f2368633b31a373e5f.zip
Adds prev/next link below post, fixes #218
-rw-r--r--.themes/classic/sass/partials/_blog.scss4
-rw-r--r--.themes/classic/source/_layouts/post.html8
2 files changed, 11 insertions, 1 deletions
diff --git a/.themes/classic/sass/partials/_blog.scss b/.themes/classic/sass/partials/_blog.scss
index 88c71e9d..63e4ee40 100644
--- a/.themes/classic/sass/partials/_blog.scss
+++ b/.themes/classic/sass/partials/_blog.scss
@@ -73,7 +73,9 @@ article {
@extend .sans;
p.meta {
margin-bottom: .8em;
- font-size: .85em;
+ font-size: .85em
+ clear: both;
+ overflow: hidden;
}
.byline + time:before, time +time:before, .comments:before, .byline ~ .categories:before {
@extend .separator;
diff --git a/.themes/classic/source/_layouts/post.html b/.themes/classic/source/_layouts/post.html
index 3b1208da..f61d52a8 100644
--- a/.themes/classic/source/_layouts/post.html
+++ b/.themes/classic/source/_layouts/post.html
@@ -15,6 +15,14 @@ single: true
{% unless page.sharing == false %}
{% include post/sharing.html %}
{% endunless %}
+ <p class="meta">
+ {% if page.previous.url %}
+ <a class="basic-alignment left" href="{{page.previous.url}}" title="Previous Post: {{page.previous.title}}">&laquo; {{page.previous.title}}</a>
+ {% endif %}
+ {% if page.next.url %}
+ <a class="basic-alignment right" href="{{page.next.url}}" title="next Post: {{page.next.title}}">{{page.next.title}} &raquo;</a>
+ {% endif %}
+ </p>
</footer>
</article>
{% if site.disqus_short_name and page.comments == true %}