only activate navigation pager if page-pager attribute is set
authorDan Allen <dan@opendevise.com>
Tue, 28 Apr 2020 23:30:26 +0000 (17:30 -0600)
committerDan Allen <dan@opendevise.com>
Wed, 29 Apr 2020 01:51:52 +0000 (19:51 -0600)
preview-src/index.adoc
src/partials/head-info.hbs
src/partials/pagination.hbs

index 8cba7f1..1b06ec0 100644 (file)
@@ -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.
index 7eb1107..f18e7da 100644 (file)
@@ -1,12 +1,14 @@
     {{#with page.canonicalUrl}}
     <link rel="canonical" href="{{this}}">
     {{/with}}
+    {{#unless (eq page.attributes.pagination undefined)}}
     {{#with page.previous}}
     <link rel="prev" href="{{{relativize ./url}}}">
     {{/with}}
     {{#with page.next}}
     <link rel="next" href="{{{relativize ./url}}}">
     {{/with}}
+    {{/unless}}
     {{#with page.description}}
     <meta name="description" content="{{this}}">
     {{/with}}
index 0c3be30..4f6300f 100644 (file)
@@ -1,3 +1,4 @@
+{{#unless (eq page.attributes.pagination undefined)}}
 {{#if (or page.previous page.next)}}
 <nav class="pagination">
   {{#with page.previous}}
@@ -8,3 +9,4 @@
   {{/with}}
 </nav>
 {{/if}}
+{{/unless}}