Skip to content

Commit 00d114a

Browse files
Jon MJonathanMatthey
authored andcommitted
format
1 parent cd3f725 commit 00d114a

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

src/pages/blog/[...page].astro

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,9 @@ export const getStaticPaths: GetStaticPaths = async ({ paginate }) => {
1717
);
1818
1919
// Collect all unique tags
20-
const allTags = [...new Set(blogEntries.flatMap((entry) => entry.data.tags))].sort();
20+
const allTags = [
21+
...new Set(blogEntries.flatMap((entry) => entry.data.tags))
22+
].sort();
2123
2224
return paginate(blogEntries, {
2325
pageSize: 10,

src/pages/blog/tag/[tag]/[...page].astro

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,9 @@ export const getStaticPaths: GetStaticPaths = async ({ paginate }) => {
1919
);
2020
2121
// Collect all unique tags
22-
const allTags = [...new Set(blogEntries.flatMap((entry) => entry.data.tags))].sort();
22+
const allTags = [
23+
...new Set(blogEntries.flatMap((entry) => entry.data.tags))
24+
].sort();
2325
2426
// Create pages for each tag
2527
return allTags.flatMap((tag) => {

0 commit comments

Comments
 (0)