From afa446d39ab7c55290dfac79f124e170aae9cd12 Mon Sep 17 00:00:00 2001 From: Ian Andwati Date: Wed, 9 Aug 2023 02:21:58 +0300 Subject: [PATCH] implemented pagination --- content/contact.md | 17 +++++++++++++++-- content/posts/_index.md | 1 + templates/posts.html | 6 +++++- 3 files changed, 21 insertions(+), 3 deletions(-) diff --git a/content/contact.md b/content/contact.md index 392058b..bbd3f99 100644 --- a/content/contact.md +++ b/content/contact.md @@ -2,6 +2,19 @@ title = "Contact" 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 \ No newline at end of file +- Github : https://github.com/andwati + +![Github contribution graph](https://ghchart.rshah.org/andwati) + +- Stack Overflow : https://stackoverflow.com/users/12246264/ian + +![Stack Overflow info](https://stackoverflow-card.vercel.app/?userID=12246264&theme=solarized-light) + +- Twitter : https://twitter.com/andwati_ + +- Email : andwatiian@gmail.com + +- stackoverflow : "https://stackoverflow.com/users/12246264/ian" +- linkedin : "https://linkedin.com/in/andwati" \ No newline at end of file diff --git a/content/posts/_index.md b/content/posts/_index.md index 6fbd10e..ac3669a 100644 --- a/content/posts/_index.md +++ b/content/posts/_index.md @@ -4,4 +4,5 @@ template = "posts.html" page_template = "post.html" sort_by = "date" insert_anchor_links = "left" +paginate_by= 5 +++ diff --git a/templates/posts.html b/templates/posts.html index 2e1fead..f482016 100644 --- a/templates/posts.html +++ b/templates/posts.html @@ -5,7 +5,11 @@

Posts

- {% for page in section.pages %}{{ post_macros::snippet(page=page) }}{% endfor %} + {% for page in paginator.pages %}{{ post_macros::snippet(page=page) }}{% endfor %} + {% include "footer.html" %} {% endblock content %}