generated from cms/tibi-docs
This commit is contained in:
parent
df1e5c03be
commit
e6e1baf808
@ -4,6 +4,7 @@
|
|||||||
let nextpage = $navigation?.pages[0]
|
let nextpage = $navigation?.pages[0]
|
||||||
$: nextpage = $navigation?.pages[0]
|
$: nextpage = $navigation?.pages[0]
|
||||||
function getNextPage(pages) {
|
function getNextPage(pages) {
|
||||||
|
console.log(pages, "pages")
|
||||||
if (location.pathname == "/" || location.pathname == "") return
|
if (location.pathname == "/" || location.pathname == "") return
|
||||||
|
|
||||||
let currPage = pages.find(
|
let currPage = pages.find(
|
||||||
@ -26,6 +27,7 @@
|
|||||||
} else {
|
} else {
|
||||||
blackBg = false
|
blackBg = false
|
||||||
}
|
}
|
||||||
|
|
||||||
getNextPage($navigation.pages)
|
getNextPage($navigation.pages)
|
||||||
|
|
||||||
if (location.pathname.split("/").filter((s) => s).length >= 2) {
|
if (location.pathname.split("/").filter((s) => s).length >= 2) {
|
||||||
@ -37,6 +39,7 @@
|
|||||||
let showNext = true
|
let showNext = true
|
||||||
$: {
|
$: {
|
||||||
if ($rerender) {
|
if ($rerender) {
|
||||||
|
|
||||||
if (location.pathname != "/") {
|
if (location.pathname != "/") {
|
||||||
getNextPage($navigation.pages)
|
getNextPage($navigation.pages)
|
||||||
}
|
}
|
||||||
|
@ -14,6 +14,7 @@
|
|||||||
<div class="inner-container">
|
<div class="inner-container">
|
||||||
<div class="pages">
|
<div class="pages">
|
||||||
{#each $navigation.pages as page}
|
{#each $navigation.pages as page}
|
||||||
|
{#if Object.values($pages)?.find((o) => o.id == page.page)?.path !== "/"}
|
||||||
<button
|
<button
|
||||||
class="page underline"
|
class="page underline"
|
||||||
on:click="{() => {
|
on:click="{() => {
|
||||||
@ -23,7 +24,7 @@
|
|||||||
}}"
|
}}"
|
||||||
>
|
>
|
||||||
{page.name}
|
{page.name}
|
||||||
</button>
|
</button>{/if}
|
||||||
{/each}
|
{/each}
|
||||||
</div>
|
</div>
|
||||||
<div class="footer-infos">
|
<div class="footer-infos">
|
||||||
|
Loading…
Reference in New Issue
Block a user