From f4e75fe6404c7416a2dc4ce4c622745b26c695de Mon Sep 17 00:00:00 2001 From: Maik Schmidt Date: Tue, 24 Jan 2017 16:42:02 +0100 Subject: [PATCH] Pagination now works for index.html files in subfolders. Links to next page consider baseurl now. (#764) * Links to next page consider baseurl now. * paginate_show_page_num controls whether page number gets output. --- _includes/page__hero.html | 4 ++-- _includes/paginator.html | 19 ++++++++++--------- 2 files changed, 12 insertions(+), 11 deletions(-) diff --git a/_includes/page__hero.html b/_includes/page__hero.html index ecc8d805..24488932 100644 --- a/_includes/page__hero.html +++ b/_includes/page__hero.html @@ -28,7 +28,7 @@ {% if page.header.overlay_color or page.header.overlay_image %}

- {% if paginator %} + {% if paginator and site.paginate_show_page_num %} {{ site.title }}{% unless paginator.page == 1 %} {{ site.data.ui-text[site.locale].page | default: "Page" }} {{ paginator.page }}{% endunless %} {% else %} {{ page.title | default: site.title | markdownify | remove: "

" | remove: "

" }} @@ -50,4 +50,4 @@ {% if page.header.caption %} {{ page.header.caption | markdownify | remove: "

" | remove: "

" }}
{% endif %} -

\ No newline at end of file + diff --git a/_includes/paginator.html b/_includes/paginator.html index b6bf99a2..3cf71d82 100644 --- a/_includes/paginator.html +++ b/_includes/paginator.html @@ -1,22 +1,23 @@ {% if paginator.total_pages > 1 %} -{% endif %} \ No newline at end of file +{% endif %}