From: Dan Allen Date: Tue, 28 Apr 2020 23:30:26 +0000 (-0600) Subject: only activate navigation pager if page-pager attribute is set X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=d577f9b76cc730b494e8de6d945e422665517bfe;p=working%2Feg-antora.git only activate navigation pager if page-pager attribute is set --- 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}}