Skip to content

Commit a50d6bf

Browse files
committed
Use plain text post metadata
1 parent 54d1d1c commit a50d6bf

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

‎src/pages/blog/[slug].astro‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ import type { GetStaticPaths } from "astro";
33
import SiteLayout from "../../layouts/SiteLayout.astro";
44
import {
55
contentOf,
6+
excerptOf,
67
featuredImage,
78
formattedDate,
89
getPages,
@@ -28,7 +29,7 @@ const pages = await getPages();
2829
const image = featuredImage(post);
2930
---
3031

31-
<SiteLayout title={titleOf(post)} description={post.excerpt?.rendered} pages={pages}>
32+
<SiteLayout title={titleOf(post)} description={excerptOf(post)} pages={pages}>
3233
<article class="article">
3334
<header>
3435
<p class="eyebrow">{formattedDate(post.date)} · WordPress</p>
@@ -43,4 +44,3 @@ const image = featuredImage(post);
4344
<a class="button secondary" href="/blog/">← Back to all stories</a>
4445
</article>
4546
</SiteLayout>
46-

0 commit comments

Comments
 (0)