1
0
mirror of https://github.com/mbirth/wiki.git synced 2024-12-24 22:54:09 +00:00

Replace related posts by Next/Prev navigation.

This commit is contained in:
Markus Birth 2015-02-21 12:15:52 +01:00
parent 58e5e1ab33
commit 629e2bf3e3
2 changed files with 27 additions and 0 deletions

View File

@ -57,6 +57,18 @@
<script src="//apis.google.com/js/plusone.js" type="text/javascript"></script>
<div class="g-comments" data-href="{{ site.url }}{{ page.url }}" data-width="900" data-first_party_property="BLOGGER" data-view_type="FILTERED_POSTMOD">Loading Google+ comments...</div>
</section>
<section id="related">
{% if page.next %}
<div id="nextpost">
<a rel="next" href="{{ page.next.url }}">← Next post: {{ page.next.title }}</a>
</div>
{% endif %}
{% if page.previous %}
<div id="prevpost">
<a rel="previous" href="{{ page.previous.url }}">Previous post: {{ page.previous.title }} →</a>
</div>
{% endif %}
{% comment %}
{% if site.related_posts %}
<section id="related">
<ul>
@ -66,6 +78,7 @@
</ul>
</section>
{% endif %}
{% endcomment %}
</div>
<!-- BEGIN: Google Analytics -->

View File

@ -13,6 +13,20 @@ abbr, acronym {
padding-left: 100px;
}
#related {
overflow: visible;
white-space: nowrap;
}
#nextpost, #prevpost {
display: inline-block;
width: 450p;
}
#prevpost {
text-align: right;
}
.noteclassic, .noteimportant, .notewarning, .notetip {
margin: 2em;
margin-left: auto;