feat: add correct href to post cards

This commit is contained in:
Youwen Wu 2024-04-12 16:32:30 -07:00
parent 199d95680a
commit 28321ae003
Signed by: youwen5
GPG key ID: 865658ED1FE61EC3
2 changed files with 1 additions and 2 deletions

View file

@ -1,5 +1,4 @@
<script lang="ts"> <script lang="ts">
import { ChevronRight } from 'svelte-radix';
import PostMetadata from './PostMetadata.svelte'; import PostMetadata from './PostMetadata.svelte';
import Crumbs from './Crumbs.svelte'; import Crumbs from './Crumbs.svelte';

View file

@ -33,7 +33,7 @@
/> />
<div class="flex flex-col justify-around col-span-3 md:col-span-2 gap-4"> <div class="flex flex-col justify-around col-span-3 md:col-span-2 gap-4">
<p class="text-primary/95 font-serif leading-relaxed">{doc.metadata.manifest.description}</p> <p class="text-primary/95 font-serif leading-relaxed">{doc.metadata.manifest.description}</p>
<Button variant="outline" href="/blog/2024/test-post" class="text-xl flex-grow sm:flex-grow-0" <Button variant="outline" href={`/blog/${doc.slug}`} class="text-xl flex-grow sm:flex-grow-0"
>Read More</Button >Read More</Button
> >
</div> </div>