diff --git a/.gitignore b/.gitignore index 289755a..1b23ed2 100644 --- a/.gitignore +++ b/.gitignore @@ -1,5 +1,6 @@ # build output dist/ +dist.zip # generated types .astro/ @@ -21,4 +22,4 @@ pnpm-debug.log* .DS_Store # Development content -public/media \ No newline at end of file +public/media diff --git a/astro.config.mjs b/astro.config.mjs index 1f2ae6f..6b85c5c 100644 --- a/astro.config.mjs +++ b/astro.config.mjs @@ -12,6 +12,9 @@ export default defineConfig({ site: "https://smartsheep.studio", integrations: [tailwind(), react(), sitemap()], adapter: node({ - mode: "standalone" - }) -}); \ No newline at end of file + mode: "standalone", + }), + redirects: { + "/p/[...slug]": "/posts/[...slug]", + }, +}); diff --git a/dist.zip b/dist.zip deleted file mode 100644 index 8fed250..0000000 Binary files a/dist.zip and /dev/null differ diff --git a/src/components/PostList.astro b/src/components/PostList.astro index 9199ad0..98cc1a7 100644 --- a/src/components/PostList.astro +++ b/src/components/PostList.astro @@ -11,7 +11,7 @@ const { posts } = Astro.props;
{ posts?.map((item) => ( - +
{item.cover.image.url && (