diff --git a/src/components/astro/recent-blogs.astro b/src/components/astro/recent-blogs.astro
index dd220f9..1adf890 100644
--- a/src/components/astro/recent-blogs.astro
+++ b/src/components/astro/recent-blogs.astro
@@ -8,8 +8,7 @@ const lang = getLangFromUrl(Astro.url)
const t = useTranslations(lang)
const allPosts = await getPostsByLocale(lang)
-const posts = allPosts
- .slice(0, common.latestPosts)
+const posts = allPosts.slice(0, common.latestPosts)
---
diff --git a/src/content/posts/en/friends-in-the-fandom.md b/src/content/posts/en/friends-in-the-fandom.md
index 346bc11..4af8303 100644
--- a/src/content/posts/en/friends-in-the-fandom.md
+++ b/src/content/posts/en/friends-in-the-fandom.md
@@ -4,6 +4,7 @@ pubDate: 2025-11-18
description: "This is the first post of my new Astro blog."
author: "@lio@pounced-on.me"
tags: ["furries", "making-friends"]
+# published: true
---
meow
diff --git a/src/layouts/base.astro b/src/layouts/base.astro
index 0c212f3..4a9fd03 100644
--- a/src/layouts/base.astro
+++ b/src/layouts/base.astro
@@ -16,16 +16,16 @@ const urls = {
general: `/images/general/ogImage.png`,
}
-const isPost = Astro.url.pathname.includes("posts")
+const isPost = post
-const ogImageURL = new URL(isPost ? urls.postURL : urls.general, Astro.site)
+const ogImageURL = new URL(post ? urls.postURL : urls.general, Astro.site)
.href
const permalink = new URL(Astro.url.pathname, Astro.site).href
const config = lang === "de" ? de : en
-const title = isPost
+const title = post
? `${post.title} - ${config.meta.title}`
: `${config.meta.description} - ${config.meta.title}`
-const description = isPost ? post.description : config.meta.description
+const description = post ? post.description : config.meta.description
---
diff --git a/src/pages/[lang]/rss.xml.ts b/src/pages/[lang]/rss.xml.ts
index ad8f66c..005801d 100644
--- a/src/pages/[lang]/rss.xml.ts
+++ b/src/pages/[lang]/rss.xml.ts
@@ -18,8 +18,7 @@ export async function GET(request: { url: URL }) {
return rss({
title: config.meta.title,
description: config.meta.description,
- site:
- config.meta.url,
+ site: config.meta.url,
items: posts.map((post: any) => ({
title: post.data.title,
description: post.data.description,
diff --git a/src/pages/rss.xml.ts b/src/pages/rss.xml.ts
index f855b7e..d401426 100644
--- a/src/pages/rss.xml.ts
+++ b/src/pages/rss.xml.ts
@@ -9,8 +9,7 @@ export async function GET() {
return rss({
title: config.meta.title,
description: config.meta.description,
- site:
- config.meta.url,
+ site: config.meta.url,
items: posts.map((post: any) => ({
title: post.data.title,
description: post.data.description,
diff --git a/src/utils/index.ts b/src/utils/index.ts
index 0cb6a0f..60bc073 100644
--- a/src/utils/index.ts
+++ b/src/utils/index.ts
@@ -35,11 +35,10 @@ export const getPostsByLocale = async (locale: string) => {
: await getCollection("dePosts")
// Add the locale to the data of each post
-
posts.forEach((post: any) => {
post.data.lang = locale
})
- const filtered = posts.filter(p => p.data.published)
+ const filtered = posts.filter((p) => p.data.published)
return filtered.sort(
(a: any, b: any) => b.data.pubDate.valueOf() - a.data.pubDate.valueOf(),
)