aboutsummaryrefslogtreecommitdiff
path: root/src/pages/blog/index.astro
diff options
context:
space:
mode:
Diffstat (limited to 'src/pages/blog/index.astro')
-rw-r--r--src/pages/blog/index.astro5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/pages/blog/index.astro b/src/pages/blog/index.astro
index 0c33b66..b240cfa 100644
--- a/src/pages/blog/index.astro
+++ b/src/pages/blog/index.astro
@@ -4,6 +4,9 @@ import { getCollection } from "astro:content";
import Layout from "../../layouts/BaseLayout.astro";
import PostElement from "../../components/PostElement.astro";
+const title = "Blog | Valentin Popov";
+const description = "A collection of articles on software development, tech leadership and open-source experiments.";
+
const posts = await getCollection("blog", ({ data }) => {
return data.draft !== true;
});
@@ -22,7 +25,7 @@ const postsByYear = posts.reduce<Record<string, CollectionEntry<"blog">[]>>((acc
const years = Object.keys(postsByYear).sort((a, b) => Number(b) - Number(a));
---
-<Layout>
+<Layout title={title} description={description}>
<section style={{ "margin-top": "3rem" }}>
{
years.map((year) => (