Reorganise pages
This commit is contained in:
parent
ce1e7cb98f
commit
df1d639055
@ -142,9 +142,10 @@ function getTodayEvent() {
|
||||
{{ set navPages = collections["navbar links"] |> eleventyNavigation }}
|
||||
{{ for entry of navPages }}
|
||||
<li>
|
||||
<a {{ if entry.url == page.url }} aria-current="page"{{ /if }} href="{{ entry.url }}">{{ entry.title }}</a>
|
||||
<a {{ if entry.url == currentUrl }} aria-current="page"{{ /if }} href="{{ entry.url }}">{{ entry.title }}</a>
|
||||
</li>
|
||||
{{ /for }}
|
||||
<li><a {{ if currentUrl.includes("/explore") }} aria-current="page"{{ /if }} href="/explore/">Explore</a></li>
|
||||
{{ /set }}
|
||||
|
||||
{{ content }}
|
||||
|
@ -1,9 +1,10 @@
|
||||
---
|
||||
title: Explore
|
||||
eleventyExcludeFromCollections: true
|
||||
eleventyComputed:
|
||||
desc: Explore {{ sitemeta.siteName }}.
|
||||
---
|
||||
{{ set explorePages = collections.pages |> eleventyNavigation }}
|
||||
{{ set explorePages = collections["explore links"] |> eleventyNavigation }}
|
||||
|
||||
<ul>
|
||||
{{ for entry of explorePages }}
|
@ -1,8 +1,8 @@
|
||||
export default {
|
||||
tags: "archive",
|
||||
tags: ["archive"],
|
||||
eleventyComputed:{
|
||||
eleventyNavigation: {
|
||||
key: (data) => data.title
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
3
src/pages/explorelinks/explorelinks.11tydata.js
Normal file
3
src/pages/explorelinks/explorelinks.11tydata.js
Normal file
@ -0,0 +1,3 @@
|
||||
export default {
|
||||
tags: ["explore links"],
|
||||
}
|
@ -0,0 +1,3 @@
|
||||
export default {
|
||||
tags: ["navbar links"],
|
||||
}
|
@ -11,7 +11,7 @@ pagination:
|
||||
permalink: "/{{ page.fileSlug }}{{ if pagination.pageNumber > 0 }}/page/{{ pagination.pageNumber + 1 }}{{ /if }}/"
|
||||
eleventyNavigation:
|
||||
key: Changelogs
|
||||
order: 9
|
||||
order: 13
|
||||
---
|
||||
|
||||
<h2>Latest Changelogs</h2>
|
||||
|
@ -4,7 +4,7 @@ desc: A non-exhaustive list of hardware and software that I use.
|
||||
updated: 2025-04-30T01:28:11+0800
|
||||
toc: true
|
||||
eleventyNavigation:
|
||||
order: 13
|
||||
order: 10
|
||||
---
|
||||
|
||||
Below is a non-exhaustive list of the hardware and software that I use.
|
||||
|
@ -1,3 +0,0 @@
|
||||
export default {
|
||||
tags: "navbar links"
|
||||
}
|
Loading…
x
Reference in New Issue
Block a user