From d577f9b76cc730b494e8de6d945e422665517bfe Mon Sep 17 00:00:00 2001 From: Dan Allen Date: Tue, 28 Apr 2020 17:30:26 -0600 Subject: [PATCH] only activate navigation pager if page-pager attribute is set --- preview-src/index.adoc | 1 + src/partials/head-info.hbs | 2 ++ src/partials/pagination.hbs | 2 ++ 3 files changed, 5 insertions(+) diff --git a/preview-src/index.adoc b/preview-src/index.adoc index 8cba7f1..1b06ec0 100644 --- a/preview-src/index.adoc +++ b/preview-src/index.adoc @@ -4,6 +4,7 @@ Author Name :idseparator: - :!example-caption: :!table-caption: +:page-pagination: image:multirepo-ssg.svg[Multirepo SSG,200,float=right] Platonem complectitur mediocritatem ea eos. diff --git a/src/partials/head-info.hbs b/src/partials/head-info.hbs index 7eb1107..f18e7da 100644 --- a/src/partials/head-info.hbs +++ b/src/partials/head-info.hbs @@ -1,12 +1,14 @@ {{#with page.canonicalUrl}} {{/with}} + {{#unless (eq page.attributes.pagination undefined)}} {{#with page.previous}} {{/with}} {{#with page.next}} {{/with}} + {{/unless}} {{#with page.description}} {{/with}} diff --git a/src/partials/pagination.hbs b/src/partials/pagination.hbs index 0c3be30..4f6300f 100644 --- a/src/partials/pagination.hbs +++ b/src/partials/pagination.hbs @@ -1,3 +1,4 @@ +{{#unless (eq page.attributes.pagination undefined)}} {{#if (or page.previous page.next)}} {{/if}} +{{/unless}} -- 2.11.0