From b0284c6eef0089d2a9bf861196bcd7c81cb4000b Mon Sep 17 00:00:00 2001 From: Egor Tensin Date: Tue, 30 May 2017 04:01:16 +0300 Subject: pagination doesn't work on anything but index.html --- posts/index.html | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 posts/index.html (limited to 'posts') diff --git a/posts/index.html b/posts/index.html new file mode 100644 index 0000000..14cc004 --- /dev/null +++ b/posts/index.html @@ -0,0 +1,22 @@ +--- +title: Posts +layout: sidebar +groups: + - navbar +navbar_link:  Posts +--- +{% if site.posts.size == 0 %} +

Sorry, no posts have been added yet.

+

But I've made quite a few plots which you might want to check out.

+
+{% else %} + {% for post in paginator.posts %} +

{{ post.title }}

+

Posted on {{ post.date | date_to_long_string }}

+

{{ post.excerpt }}

+
+ {% endfor %} +
+ {% include common/pagination.html %} +
+{% endif %} -- cgit v1.2.3