Reorganise pages
This commit is contained in:
parent
ce1e7cb98f
commit
df1d639055
@ -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 }}
|
||||||
|
@ -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 }}
|
@ -1,8 +1,8 @@
|
|||||||
export default {
|
export default {
|
||||||
tags: "archive",
|
tags: ["archive"],
|
||||||
eleventyComputed:{
|
eleventyComputed:{
|
||||||
eleventyNavigation: {
|
eleventyNavigation: {
|
||||||
key: (data) => data.title
|
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 }}/"
|
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>
|
||||||
|
@ -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.
|
||||||
|
@ -1,3 +0,0 @@
|
|||||||
export default {
|
|
||||||
tags: "navbar links"
|
|
||||||
}
|
|
Loading…
x
Reference in New Issue
Block a user