✨ Short links
This commit is contained in:
parent
fd289d980e
commit
6624e4e0ab
3
.gitignore
vendored
3
.gitignore
vendored
@ -1,5 +1,6 @@
|
|||||||
# build output
|
# build output
|
||||||
dist/
|
dist/
|
||||||
|
dist.zip
|
||||||
# generated types
|
# generated types
|
||||||
.astro/
|
.astro/
|
||||||
|
|
||||||
@ -21,4 +22,4 @@ pnpm-debug.log*
|
|||||||
.DS_Store
|
.DS_Store
|
||||||
|
|
||||||
# Development content
|
# Development content
|
||||||
public/media
|
public/media
|
||||||
|
@ -12,6 +12,9 @@ export default defineConfig({
|
|||||||
site: "https://smartsheep.studio",
|
site: "https://smartsheep.studio",
|
||||||
integrations: [tailwind(), react(), sitemap()],
|
integrations: [tailwind(), react(), sitemap()],
|
||||||
adapter: node({
|
adapter: node({
|
||||||
mode: "standalone"
|
mode: "standalone",
|
||||||
})
|
}),
|
||||||
});
|
redirects: {
|
||||||
|
"/p/[...slug]": "/posts/[...slug]",
|
||||||
|
},
|
||||||
|
});
|
||||||
|
@ -11,7 +11,7 @@ const { posts } = Astro.props;
|
|||||||
<div class="grid justify-items-strench gap-6">
|
<div class="grid justify-items-strench gap-6">
|
||||||
{
|
{
|
||||||
posts?.map((item) => (
|
posts?.map((item) => (
|
||||||
<a href={`/posts/${item.slug}`}>
|
<a href={`/p/${item.slug}`}>
|
||||||
<div class="card sm:card-side hover:bg-base-200 transition-colors sm:max-w-none shadow-xl">
|
<div class="card sm:card-side hover:bg-base-200 transition-colors sm:max-w-none shadow-xl">
|
||||||
{item.cover.image.url && (
|
{item.cover.image.url && (
|
||||||
<figure class="mx-auto w-full object-cover p-6 max-sm:pb-0 sm:max-w-[12rem] sm:pe-0">
|
<figure class="mx-auto w-full object-cover p-6 max-sm:pb-0 sm:max-w-[12rem] sm:pe-0">
|
||||||
|
Loading…
Reference in New Issue
Block a user