diff options
author | 2022-03-28 17:16:06 -0700 | |
---|---|---|
committer | 2022-03-28 17:16:06 -0700 | |
commit | 4299ab303b0743349fbd01f85340bea61a1c16a8 (patch) | |
tree | 7012176c704d4f254fb2a602101fb7f0a01b8450 /examples/blog/src/components/BlogPostPreview.astro | |
parent | 7d29feace103c0cf7c682634d4359b69338c2a1d (diff) | |
download | astro-4299ab303b0743349fbd01f85340bea61a1c16a8.tar.gz astro-4299ab303b0743349fbd01f85340bea61a1c16a8.tar.zst astro-4299ab303b0743349fbd01f85340bea61a1c16a8.zip |
New Markdown API (#2862)
* Implement new markdown plugin with deferred markdown rendering
* feat: switch from `getContent()` fn to `<Content />` API
* update types
* Update packages/astro/src/@types/astro.ts
Co-authored-by: Nate Moore <natemoo-re@users.noreply.github.com>
* update types
* Create forty-coins-attend.md
Co-authored-by: Nate Moore <nate@skypack.dev>
Co-authored-by: Nate Moore <natemoo-re@users.noreply.github.com>
Diffstat (limited to 'examples/blog/src/components/BlogPostPreview.astro')
-rw-r--r-- | examples/blog/src/components/BlogPostPreview.astro | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/examples/blog/src/components/BlogPostPreview.astro b/examples/blog/src/components/BlogPostPreview.astro index 4841d3a65..f935ff8b2 100644 --- a/examples/blog/src/components/BlogPostPreview.astro +++ b/examples/blog/src/components/BlogPostPreview.astro @@ -8,10 +8,10 @@ const { post } = Astro.props; <article class="post-preview"> <header> - <p class="publish-date">{post.publishDate}</p> - <a href={post.url}><h1 class="title">{post.title}</h1></a> + <p class="publish-date">{post.frontmatter.publishDate}</p> + <a href={post.url}><h1 class="title">{post.frontmatter.title}</h1></a> </header> - <p>{post.description}</p> + <p>{post.frontmatter.description}</p> <a href={post.url}>Read more</a> </article> |