aboutsummaryrefslogtreecommitdiff
path: root/src/pages
diff options
context:
space:
mode:
authorValentin Popov <valentin@popov.link>2024-09-12 01:03:55 +0300
committerValentin Popov <valentin@popov.link>2024-09-12 01:03:55 +0300
commitc89ed0f7f9dcf14d1d96ad0d13ad59f5b542396e (patch)
tree9c2a9ab17662a1b9c9539c9246b19b82f46d47f8 /src/pages
parent97aa90a605602b9385ba734e2bd9d155aed954e8 (diff)
downloadpopov.link-c89ed0f7f9dcf14d1d96ad0d13ad59f5b542396e.tar.xz
popov.link-c89ed0f7f9dcf14d1d96ad0d13ad59f5b542396e.zip
Update default title and description
Diffstat (limited to 'src/pages')
-rw-r--r--src/pages/blog/[...slug].astro2
-rw-r--r--src/pages/feed.xml.js4
2 files changed, 3 insertions, 3 deletions
diff --git a/src/pages/blog/[...slug].astro b/src/pages/blog/[...slug].astro
index 2593921..f99ef21 100644
--- a/src/pages/blog/[...slug].astro
+++ b/src/pages/blog/[...slug].astro
@@ -22,7 +22,7 @@ const { Content, remarkPluginFrontmatter } = await post.render();
}
</style>
-<Layout>
+<Layout title={post.data.title} description={post.data.description}>
<div class="header">
<h1>{post.data.title}</h1>
<p>
diff --git a/src/pages/feed.xml.js b/src/pages/feed.xml.js
index a509386..c837202 100644
--- a/src/pages/feed.xml.js
+++ b/src/pages/feed.xml.js
@@ -6,7 +6,7 @@ export async function GET(context) {
return rss({
customData: `<language>ru-ru</language>`,
- description: "Tech insights and coding best practices from an OpenSource enthusiast and ethical hacker.",
+ description: import.meta.env.DEFAULT_DESCRIPTION,
items: posts.map((post) => ({
customData: post.data.customData,
description: post.data.description,
@@ -15,6 +15,6 @@ export async function GET(context) {
title: post.data.title,
})),
site: context.site,
- title: "Valentin Popov’s Technology Blog",
+ title: import.meta.env.DEFAULT_TITLE,
});
}