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 }} {{ set navPages = collections["navbar links"] |> eleventyNavigation }}
{{ for entry of navPages }} {{ for entry of navPages }}
<li> <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> </li>
{{ /for }} {{ /for }}
<li><a {{ if currentUrl.includes("/explore") }} aria-current="page"{{ /if }} href="/explore/">Explore</a></li>
{{ /set }} {{ /set }}
{{ content }} {{ content }}

View File

@ -1,9 +1,10 @@
--- ---
title: Explore title: Explore
eleventyExcludeFromCollections: true
eleventyComputed: eleventyComputed:
desc: Explore {{ sitemeta.siteName }}. desc: Explore {{ sitemeta.siteName }}.
--- ---
{{ set explorePages = collections.pages |> eleventyNavigation }} {{ set explorePages = collections["explore links"] |> eleventyNavigation }}
<ul> <ul>
{{ for entry of explorePages }} {{ for entry of explorePages }}

View File

@ -1,8 +1,8 @@
export default { export default {
tags: "archive", tags: ["archive"],
eleventyComputed:{ eleventyComputed:{
eleventyNavigation: { eleventyNavigation: {
key: (data) => data.title 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 }}/" permalink: "/{{ page.fileSlug }}{{ if pagination.pageNumber > 0 }}/page/{{ pagination.pageNumber + 1 }}{{ /if }}/"
eleventyNavigation: eleventyNavigation:
key: Changelogs key: Changelogs
order: 9 order: 13
--- ---
<h2>Latest Changelogs</h2> <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 updated: 2025-04-30T01:28:11+0800
toc: true toc: true
eleventyNavigation: eleventyNavigation:
order: 13 order: 10
--- ---
Below is a non-exhaustive list of the hardware and software that I use. 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"
}