From 73cab64c4852760f1c51f295dadadb577cfef9f0 Mon Sep 17 00:00:00 2001 From: sipp11 Date: Wed, 26 Nov 2014 04:35:30 +0700 Subject: [PATCH] paginator url --- _config.yml | 4 ++-- _includes/paginator.html | 6 +++--- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/_config.yml b/_config.yml index c25b18e..2c726d1 100644 --- a/_config.yml +++ b/_config.yml @@ -12,10 +12,10 @@ github_username: sipp11 # Build settings markdown: kramdown -permalink: /:year/:month/:day/:title.html +permalink: /:year/:month/:day/:title/ paginate: 8 -paginate_path: "post/page:num/" +paginate_path: "post/page/:num/" sass: style: :compressed diff --git a/_includes/paginator.html b/_includes/paginator.html index 3a31448..0a14cfc 100644 --- a/_includes/paginator.html +++ b/_includes/paginator.html @@ -5,14 +5,14 @@ {% else %} « Prev {% endif %} - +{{ site.baseurl }} {% for page in (1..paginator.total_pages) %} {% if page == paginator.page %} {{ page }} {% elsif page == 1 %} - {{ page }} + {{ page }} {% else %} - {{ page }} + {{ page }} {% endif %} {% endfor %}