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:
parent
58e5e1ab33
commit
629e2bf3e3
@ -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 -->
|
||||
|
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user