Reorganise pages

This commit is contained in:
Leilukin 2025-05-08 18:15:06 +08:00
parent ce1e7cb98f
commit df1d639055
22 changed files with 14 additions and 9 deletions

View File

@ -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 }}

View File

@ -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 }}

View File

@ -1,5 +1,5 @@
export default {
tags: "archive",
tags: ["archive"],
eleventyComputed:{
eleventyNavigation: {
key: (data) => data.title

View File

@ -0,0 +1,3 @@
export default {
tags: ["explore links"],
}

View File

@ -0,0 +1,3 @@
export default {
tags: ["navbar links"],
}

View File

@ -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>

View File

@ -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.

View File

@ -1,3 +0,0 @@
export default {
tags: "navbar links"
}