mirror of
https://github.com/phil-opp/blog_os.git
synced 2025-12-16 22:37:49 +00:00
Add links to next and previous post
This commit is contained in:
@@ -7,6 +7,16 @@ layout: default
|
|||||||
<time datetime="{{ page.date | date_to_xmlschema }}" class="post-date">{{ page.date | date_to_string }}</time>
|
<time datetime="{{ page.date | date_to_xmlschema }}" class="post-date">{{ page.date | date_to_string }}</time>
|
||||||
{{ content }}
|
{{ content }}
|
||||||
<hr>
|
<hr>
|
||||||
|
|
||||||
|
<div class="PageNavigation">
|
||||||
|
{% if page.previous.url %}
|
||||||
|
<a class="prev" href="{{page.previous.url}}">« {{page.previous.title}}</a>
|
||||||
|
{% endif %}
|
||||||
|
{% if page.next.url %}
|
||||||
|
<a class="next" href="{{page.next.url}}">{{page.next.title}} »</a>
|
||||||
|
{% endif %}
|
||||||
|
</div>
|
||||||
|
|
||||||
{% include google_adsense.html %}
|
{% include google_adsense.html %}
|
||||||
<hr>
|
<hr>
|
||||||
{% include disqus.html %}
|
{% include disqus.html %}
|
||||||
|
|||||||
@@ -59,3 +59,22 @@
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.PageNavigation {
|
||||||
|
font-size: 0.9em;
|
||||||
|
display: table;
|
||||||
|
width: 100%;
|
||||||
|
overflow: hidden;
|
||||||
|
}
|
||||||
|
|
||||||
|
.PageNavigation a {
|
||||||
|
display: table-cell;
|
||||||
|
}
|
||||||
|
|
||||||
|
.PageNavigation .previous {
|
||||||
|
text-align: left;
|
||||||
|
}
|
||||||
|
|
||||||
|
.PageNavigation .next {
|
||||||
|
text-align: right;
|
||||||
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user