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
ok1kvk.cz
content
Commits
c593d91f
Commit
c593d91f
authored
Jan 12, 2020
by
Isabella Skořepová
Browse files
Disable firstpage and lastpage links when already there
parent
77677900
Changes
1
Hide whitespace changes
Inline
Side-by-side
theme-source/partials/paginator.js
View file @
c593d91f
...
...
@@ -31,7 +31,7 @@ export function Paginator({ metadata, file, config }) {
<
li
>
<
a
href
=
{
metadata
.
firstpage
metadata
.
firstpage
&&
metadata
.
firstpage
.
file
!==
file
?
`
${
config
.
baseurl
}
/
${
metadata
.
firstpage
.
file
}
`
:
undefined
}
...
...
@@ -86,7 +86,7 @@ export function Paginator({ metadata, file, config }) {
<
li
>
<
a
href
=
{
metadata
.
lastpage
metadata
.
lastpage
&&
metadata
.
lastpage
.
file
!==
file
?
`
${
config
.
baseurl
}
/
${
metadata
.
lastpage
.
file
}
`
:
undefined
}
...
...
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