2021-06-08 19:01:46 +00:00
|
|
|
---
|
|
|
|
import authorData from '../data/authors.json';
|
|
|
|
|
2021-06-24 22:48:24 +00:00
|
|
|
export interface Props {
|
|
|
|
authorId: string;
|
|
|
|
}
|
|
|
|
|
|
|
|
const { authorId } = Astro.props;
|
2021-06-08 19:01:46 +00:00
|
|
|
const author = authorData[authorId];
|
|
|
|
---
|
|
|
|
<div class="author">
|
|
|
|
<p>by {author.name}{' '}<a href={`https://twitter.com/${author.twitter}`}>@{author.twitter}</a></p>
|
|
|
|
</div>
|