diff --git a/astro.config.mjs b/astro.config.mjs index afe3886..990e89e 100644 --- a/astro.config.mjs +++ b/astro.config.mjs @@ -11,10 +11,7 @@ export default defineConfig({ // Slug issue if not enabled redirects: { '/docs/': '/docs/zorn/introduction/', - '/docs/minpluto': '/docs/zorn/introduction/', - '/blog/minpluto-and-its-future-goals': '/blog/673e823bd79b8500015f4763', - '/blog/zen-browser-worth-the-hype': '/blog/673e81f4d79b8500015f4755', - '/blog/desktop-development-stops': '/blog/673e817fd79b8500015f474a', + '/docs/minpluto': '/docs/zorn/introduction/' }, integrations: [markdoc(), mdx(), betterImageService({ diff --git a/src/pages/blog/[...slug].astro b/src/pages/blog/[...slug].astro index 3c4f834..048630c 100644 --- a/src/pages/blog/[...slug].astro +++ b/src/pages/blog/[...slug].astro @@ -12,7 +12,7 @@ import {Zorn} from "@minpluto/zorn" // Icons import { Calendar } from "@iconoir/vue"; -const Id = Astro.url.href.split("/blog/").pop(); +const Id = Astro.url.href.split("?postid=").pop(); const GhostPostFetch = 'https://blog.ghost.sudovanilla.org/ghost/api/content/posts/' + Id + '/?key=bef2ed15d9e38f7703be9412b3' const GhostPostResponse = await fetch(GhostPostFetch); const GhostPost = await GhostPostResponse.json(); @@ -29,7 +29,7 @@ const GhostPost = await GhostPostResponse.json(); {new Date(GhostPost.posts[0].published_at).toLocaleDateString()}

-
diff --git a/src/pages/blog/index.astro b/src/pages/blog/index.astro index 4df69f1..5d3e27a 100644 --- a/src/pages/blog/index.astro +++ b/src/pages/blog/index.astro @@ -22,7 +22,7 @@ import { BookmarkBook, ReportColumns } from "@iconoir/vue";
{Ghost.posts.map((post) => - + +