Skip to content

Commit

Permalink
🚴‍♀️ Simplify author nesting (#208)
Browse files Browse the repository at this point in the history
  • Loading branch information
rowanc1 authored Aug 11, 2023
1 parent 9def296 commit 25ac213
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 8 deletions.
5 changes: 5 additions & 0 deletions .changeset/shiny-shrimps-confess.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@myst-theme/frontmatter': patch
---

Simplify nesting of authors
15 changes: 7 additions & 8 deletions packages/frontmatter/src/FrontmatterBlock.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -84,14 +84,13 @@ export function AuthorsList({ authors }: { authors: PageFrontmatter['authors'] }
return (
<div>
{authors.map((a, i) => (
<span key={a.name}>
<Author
author={a}
className={classNames('inline-block', {
'text-comma': i < authors.length - 1,
})}
/>
</span>
<Author
key={a.name}
author={a}
className={classNames('inline-block', {
'text-comma': i < authors.length - 1,
})}
/>
))}
</div>
);
Expand Down

0 comments on commit 25ac213

Please sign in to comment.