diff --git a/src/components/astro/recent-blogs.astro b/src/components/astro/recent-blogs.astro
index 741fc76..dd220f9 100644
--- a/src/components/astro/recent-blogs.astro
+++ b/src/components/astro/recent-blogs.astro
@@ -10,7 +10,6 @@ const t = useTranslations(lang)
const allPosts = await getPostsByLocale(lang)
const posts = allPosts
.slice(0, common.latestPosts)
- .filter((p) => p.data.published)
---
diff --git a/src/config/de/about.mdx b/src/config/de/about.mdx
deleted file mode 100644
index ec08bf6..0000000
--- a/src/config/de/about.mdx
+++ /dev/null
@@ -1,12 +0,0 @@
-export const title = "你好,我是小孙同学~"
-
-
{title}
-
-

-

diff --git a/src/config/de/intro.mdx b/src/config/de/intro.mdx
index f0b9cb4..64e73b4 100644
--- a/src/config/de/intro.mdx
+++ b/src/config/de/intro.mdx
@@ -1,6 +1,15 @@
export const age = new Date().getFullYear() - 2002
-
- they/them (er/ihm) ⋅ {age}yo digital sorcerer und pixel wizard ⋅ self-hoster ⋅
- liebt automation
-
+they/them (er/ihm) ⋅ {age}yo ⋅ digital sorcerer und pixel wizard
+
+- coo @ [pyro]
+- schreibt texte @ [eurofurence]
+- ui @ [sofurry]
+
+meine professionelle arbeit findest du auf [datashard.work]
+
+
+[pyro]:https://pyro.host
+[eurofurence]:https://eurofurence.org
+[sofurry]:https://sofurry.com
+[datashard.work]:https://datashard.work
\ No newline at end of file
diff --git a/src/config/de/links.mdx b/src/config/de/links.mdx
deleted file mode 100644
index f2435d7..0000000
--- a/src/config/de/links.mdx
+++ /dev/null
@@ -1,21 +0,0 @@
-export const title = "我的链接"
-
-
{title}
-
-```json
-name: "Guoqi Sun"
-description: "Try, fail, retry. That's the rhythm of growth."
-link: "https://blog.sunguoqi.com"
-avatar: "https://assets.guoqi.dev/images/avatar.png"
-```
-
-
- 想要添加友情链接?请按照如下格式在评论区留言,我会及时添加。
-
-
-```json
-name: "your site name"
-description: "your site description"
-link: "your site link"
-avatar: "your site avatar"
-```
diff --git a/src/config/en/about.mdx b/src/config/en/about.mdx
deleted file mode 100644
index ff8792d..0000000
--- a/src/config/en/about.mdx
+++ /dev/null
@@ -1,12 +0,0 @@
-export const title = "Hello, I'm Guoqi Sun ~"
-
-
{title}
-
-

-

diff --git a/src/config/en/links.mdx b/src/config/en/links.mdx
deleted file mode 100644
index 575d254..0000000
--- a/src/config/en/links.mdx
+++ /dev/null
@@ -1,22 +0,0 @@
-export const title = "My Link"
-
-
{title}
-
-```js
-name: "Guoqi Sun",
-description: "Try, fail, retry. That's the rhythm of growth.",
-link: "https://blog.sunguoqi.com",
-avatar: "https://assets.guoqi.dev/images/avatar.png",
-```
-
-
- Want to add a friend link? Please leave a comment in the comment area below,
- and I will add it as soon as possible.
-
-
-```js
-name: "your site name",
-description: "your site description",
-link: "your site link",
-avatar: "your site avatar",
-```
diff --git a/src/layouts/base.astro b/src/layouts/base.astro
index 3a73464..0c212f3 100644
--- a/src/layouts/base.astro
+++ b/src/layouts/base.astro
@@ -11,9 +11,8 @@ import "~/styles/tailwind.css"
const lang = getLangFromUrl(Astro.url)
const post = Astro.props.post
-
const urls = {
- postURL: `${Astro.url.pathname}/og.png`,
+ postURL: `${Astro.url.pathname.replace(/\/$/, "")}/og.png`,
general: `/images/general/ogImage.png`,
}
diff --git a/src/pages/[lang]/about/index.astro b/src/pages/[lang]/about/index.astro
deleted file mode 100644
index a206225..0000000
--- a/src/pages/[lang]/about/index.astro
+++ /dev/null
@@ -1,27 +0,0 @@
----
-import { de, en } from "~/config"
-import AboutContentDe from "~/config/de/about.mdx"
-import AboutContentEn from "~/config/en/about.mdx"
-import { getLangFromUrl } from "~/i18n/utils"
-import MainLayout from "~/layouts/main.astro"
-import { getLanguagePaths } from "~/utils/langs"
-
-export function getStaticPaths() {
- return getLanguagePaths()
-}
-
-const lang = getLangFromUrl(Astro.url)
-const pageMeta = lang === "de" ? de.pageMeta : en.pageMeta
-const AboutContent = lang === "de" ? AboutContentDe : AboutContentEn
----
-
-
-
-
diff --git a/src/pages/[lang]/rss.xml.ts b/src/pages/[lang]/rss.xml.ts
index b523c24..ad8f66c 100644
--- a/src/pages/[lang]/rss.xml.ts
+++ b/src/pages/[lang]/rss.xml.ts
@@ -19,9 +19,7 @@ export async function GET(request: { url: URL }) {
title: config.meta.title,
description: config.meta.description,
site:
- process.env.NODE_ENV === "development"
- ? "http://localhost:4321"
- : config.meta.url,
+ 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 a047767..f855b7e 100644
--- a/src/pages/rss.xml.ts
+++ b/src/pages/rss.xml.ts
@@ -10,9 +10,7 @@ export async function GET() {
title: config.meta.title,
description: config.meta.description,
site:
- process.env.NODE_ENV === "development"
- ? "http://localhost:4321"
- : config.meta.url,
+ 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 d47ab2f..0cb6a0f 100644
--- a/src/utils/index.ts
+++ b/src/utils/index.ts
@@ -34,10 +34,13 @@ export const getPostsByLocale = async (locale: string) => {
? await getCollection("enPosts")
: await getCollection("dePosts")
// Add the locale to the data of each post
+
+
posts.forEach((post: any) => {
post.data.lang = locale
})
- return posts.sort(
+ const filtered = posts.filter(p => p.data.published)
+ return filtered.sort(
(a: any, b: any) => b.data.pubDate.valueOf() - a.data.pubDate.valueOf(),
)
}