We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 47ea216 + 928380a commit 1d36741Copy full SHA for 1d36741
src/pages/category/[category]/[page].astro
@@ -29,11 +29,14 @@ const params = Astro.params
29
const { page } = Astro.props
30
31
const unsluglifyNameCategory = unsluglify(params.category!.toLowerCase())
32
+const categoryName = (await getCategories()).find(
33
+ (category) => category.toLowerCase() === unsluglifyNameCategory
34
+)
35
const posts = page.data
36
---
37
-<BaseLayout title={params.category}>
- <TitlePage title={unsluglifyNameCategory} />
38
+<BaseLayout title={categoryName}>
39
+ <TitlePage title={categoryName} />
40
<ListCategories activeCategory={params.category} />
41
<ListPosts posts={posts} />
42
<Pagination page={page} />
0 commit comments