Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
redacteur-doc-technique
old-antora-ui-default-fork
Commits
d577f9b7
Commit
d577f9b7
authored
Apr 28, 2020
by
Dan Allen
Browse files
only activate navigation pager if page-pager attribute is set
parent
4c04b4dc
Changes
3
Hide whitespace changes
Inline
Side-by-side
preview-src/index.adoc
View file @
d577f9b7
...
...
@@ -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.
...
...
src/partials/head-info.hbs
View file @
d577f9b7
{{#
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
}}
...
...
src/partials/pagination.hbs
View file @
d577f9b7
{{#
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
}}
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment