Skip to content

Commit 7bbc45f

Browse files
committed
Add image to Case Layout
1 parent 419bc9a commit 7bbc45f

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

tutorial/src/layouts/CaseLayout.astro

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,9 @@ const { frontmatter } = Astro.props;
44
---
55
<BaseLayout pgTitle={frontmatter.title}>
66
<img src={frontmatter.image.url} width="300" alt={frontmatter.image.alt} />
7-
<p>Author(s): {frontmatter.author}
7+
<p>Author(s):
88
<div>
9-
{frontmatter.authors.map((author) => <span>{author}{frontmatter.authors.length === 1 ?"":", "}</span>)}
9+
{frontmatter.authors.map((author) => <span>{author}, </span>)}
1010
</div>
1111
</p>
1212
<p>Published on: {frontmatter.pubDate.toString().slice(0,10)}</p>

0 commit comments

Comments
 (0)