Commit c593d91f authored by Isabella Skořepová's avatar Isabella Skořepová
Browse files

Disable firstpage and lastpage links when already there

parent 77677900
......@@ -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
}
......
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