Commit efefab3

HPCesia <me@hpcesia.com>
2025-01-24 06:13:45
feat: add title to some pages
1 parent f3d8da7
Changed files (3)
src
pages
archives
categories
[category]
tags
posts
src/pages/archives/categories/[category]/[page].astro
@@ -36,7 +36,7 @@ const { category } = Astro.params;
 const categories = await getCategories();
 ---
 
-<GridLayout>
+<GridLayout title={category}>
   <CategoryBar categories={categories} currentCategory={category} />
   <PostPage
     posts={posts}
src/pages/archives/tags/[tag]/[page].astro
@@ -35,7 +35,7 @@ const { posts, currentPage } = Astro.props;
 const { tag } = Astro.params;
 ---
 
-<GridLayout>
+<GridLayout title={tag}>
   <PostPage posts={posts} currentPage={currentPage} baseUrl={`/archives/tags/${tag}`} />
   <Fragment slot="aside-fixed">
     <ProfileCard />
src/pages/posts/[article].astro
@@ -23,7 +23,7 @@ const { Content, headings } = await render(article);
 const wordCount = countWords(article.body || '');
 ---
 
-<GridLayout>
+<GridLayout title={article.data.title} description={article.data.description}>
   <Fragment slot="header-content">
     <PostInfo
       title={article.data.title}