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 --- _config.yml | 1 + posts.html | 22 ---------------------- posts/index.html | 22 ++++++++++++++++++++++ 3 files changed, 23 insertions(+), 22 deletions(-) delete mode 100644 posts.html create mode 100644 posts/index.html diff --git a/_config.yml b/_config.yml index 3b93d31..d05f970 100644 --- a/_config.yml +++ b/_config.yml @@ -11,6 +11,7 @@ exclude: - README.md paginate: 10 +paginate_path: "posts/page:num/" include_comments: true minified_externals: true diff --git a/posts.html b/posts.html deleted file mode 100644 index 14cc004..0000000 --- a/posts.html +++ /dev/null @@ -1,22 +0,0 @@ ---- -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 %} 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