Commit d577f9b7 authored by Dan Allen's avatar Dan Allen
Browse files

only activate navigation pager if page-pager attribute is set

parent 4c04b4dc
......@@ -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.
......
{{#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}}
......
{{#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}}
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment