Skip to content

Commit 98ac5ab

Browse files
committed
Refactor page lists
1 parent 601bad3 commit 98ac5ab

File tree

8 files changed

+9
-9
lines changed

8 files changed

+9
-9
lines changed

src/pages/blog.astro

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
---
22
import BaseLayout from '../layouts/BaseLayout.astro';
33
4+
const allPosts = Object.values(import.meta.glob('./posts/blog*.md', { eager: true }));
45
const pageTitle = "Blog";
56
67
---
@@ -11,7 +12,7 @@ const pageTitle = "Blog";
1112
<p>I think this would be a good place to comment on different world building tidbits that I enjoy. I can muse on topics in a longer format or maybe even drop a book review here and there.</p>
1213

1314
<ul>
14-
<li><a href="/Worldbuilding-Wiki/posts/tidbit-1/">Tidbit 1 - My First Blogpost</a></li>
15+
{allPosts.map((post: any) => <li><a href={post.url}>{post.frontmatter.title}</a></li>)}
1516
</ul>
1617
</body>
1718
</BaseLayout>
File renamed without changes.

src/pages/posts/wiki-2-void.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
---
22
layout: ../../layouts/MarkdownPostLayout.astro
3-
title: 'The Creator'
3+
title: 'The Void'
44
pubDate: '2025-08-05'
55
description: 'Who is the creator of the universe?'
66
author: 'Jackson Sardello'

src/pages/posts/wiki-3-mortal-realms.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
---
22
layout: ../../layouts/MarkdownPostLayout.astro
3-
title: 'The Creator'
3+
title: 'The Mortal Realms'
44
pubDate: '2025-08-05'
55
description: 'Who is the creator of the universe?'
66
author: 'Jackson Sardello'

src/pages/posts/wiki-4-divine-realms.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
---
22
layout: ../../layouts/MarkdownPostLayout.astro
3-
title: 'The Creator'
3+
title: 'The Divine Realms'
44
pubDate: '2025-08-05'
55
description: 'Who is the creator of the universe?'
66
author: 'Jackson Sardello'

src/pages/posts/wiki-5-demonic-realms.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
---
22
layout: ../../layouts/MarkdownPostLayout.astro
3-
title: 'The Creator'
3+
title: 'The Demonic Realms'
44
pubDate: '2025-08-05'
55
description: 'Who is the creator of the universe?'
66
author: 'Jackson Sardello'

src/pages/posts/wiki-6-pantheon.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
---
22
layout: ../../layouts/MarkdownPostLayout.astro
3-
title: 'The Creator'
3+
title: 'The Pantheon'
44
pubDate: '2025-08-05'
55
description: 'Who is the creator of the universe?'
66
author: 'Jackson Sardello'

src/pages/wiki.astro

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,14 @@
11
---
22
import BaseLayout from '../layouts/BaseLayout.astro';
33
4+
const allPosts = Object.values(import.meta.glob('./posts/wiki*.md', { eager: true }));
45
const pageTitle = "Wiki";
56
67
---
78
<BaseLayout pageTitle={pageTitle}>
89
<body>
9-
1010
<ul>
11-
<li><a href="/Worldbuilding-Wiki/posts/wiki-1-creator/">The Creator</a></li>
11+
{allPosts.map((post: any) => <li><a href={post.url}>{post.frontmatter.title}</a></li>)}
1212
</ul>
13-
1413
</body>
1514
</BaseLayout>

0 commit comments

Comments
 (0)