From c280d69f3417b9579e4d8f341c61af9a587f15cd Mon Sep 17 00:00:00 2001 From: Michael Rose Date: Tue, 24 Jan 2017 10:44:39 -0500 Subject: [PATCH] Pagination now works for index.html files in subfolders. Links to next page consider baseurl now. (#764) --- docs/_includes/page__hero.html | 4 ++-- docs/_includes/paginator.html | 19 ++++++++++--------- 2 files changed, 12 insertions(+), 11 deletions(-) diff --git a/docs/_includes/page__hero.html b/docs/_includes/page__hero.html index ecc8d8056ad2..24488932ae5f 100644 --- a/docs/_includes/page__hero.html +++ b/docs/_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/docs/_includes/paginator.html b/docs/_includes/paginator.html index b6bf99a2e05a..3cf71d82c0ed 100644 --- a/docs/_includes/paginator.html +++ b/docs/_includes/paginator.html @@ -1,22 +1,23 @@ {% if paginator.total_pages > 1 %} -{% endif %} \ No newline at end of file +{% endif %}