mirror of
https://github.com/andwati/andwati.com.git
synced 2026-11-26 02:18:46 +00:00
implemented pagination
This commit is contained in:
+15
-2
@@ -2,6 +2,19 @@
|
|||||||
title = "Contact"
|
title = "Contact"
|
||||||
description = "Let's get in touch."
|
description = "Let's get in touch."
|
||||||
+++
|
+++
|
||||||
You can find me on GitHub as [@andwati]. To email me andwatiian at gmail domain dot com.
|
# Find me on:
|
||||||
|
|
||||||
[@andwati]: https://github.com/andwati
|
- Github : https://github.com/andwati
|
||||||
|
|
||||||
|

|
||||||
|
|
||||||
|
- Stack Overflow : https://stackoverflow.com/users/12246264/ian
|
||||||
|
|
||||||
|

|
||||||
|
|
||||||
|
- Twitter : https://twitter.com/andwati_
|
||||||
|
|
||||||
|
- Email : andwatiian@gmail.com
|
||||||
|
|
||||||
|
- stackoverflow : "https://stackoverflow.com/users/12246264/ian"
|
||||||
|
- linkedin : "https://linkedin.com/in/andwati"
|
||||||
@@ -4,4 +4,5 @@ template = "posts.html"
|
|||||||
page_template = "post.html"
|
page_template = "post.html"
|
||||||
sort_by = "date"
|
sort_by = "date"
|
||||||
insert_anchor_links = "left"
|
insert_anchor_links = "left"
|
||||||
|
paginate_by= 5
|
||||||
+++
|
+++
|
||||||
|
|||||||
@@ -5,7 +5,11 @@
|
|||||||
<header>
|
<header>
|
||||||
<h1>Posts</h1>
|
<h1>Posts</h1>
|
||||||
</header>
|
</header>
|
||||||
{% for page in section.pages %}{{ post_macros::snippet(page=page) }}{% endfor %}
|
{% for page in paginator.pages %}{{ post_macros::snippet(page=page) }}{% endfor %}
|
||||||
|
<nav>
|
||||||
|
{% if paginator.previous %}<a href="{{ paginator.previous }}" class="previous">Previous</a>{% endif %}
|
||||||
|
{% if paginator.next %}<a href="{{ paginator.next }}" class="next">Next</a>{% endif %}
|
||||||
|
</nav>
|
||||||
</main>
|
</main>
|
||||||
{% include "footer.html" %}
|
{% include "footer.html" %}
|
||||||
{% endblock content %}
|
{% endblock content %}
|
||||||
|
|||||||
Reference in New Issue
Block a user