2021-06-08 19:01:46 +00:00
|
|
|
---
|
|
|
|
import authorData from '../data/authors.json';
|
|
|
|
|
|
|
|
export let authorId: string;
|
|
|
|
const author = authorData[authorId];
|
|
|
|
---
|
2021-06-08 23:44:56 +00:00
|
|
|
<style>
|
|
|
|
.author {
|
|
|
|
margin-bottom: 0.75rem;
|
|
|
|
}
|
|
|
|
</style>
|
2021-06-08 19:01:46 +00:00
|
|
|
<div class="author">
|
|
|
|
<p>by {author.name}{' '}<a href={`https://twitter.com/${author.twitter}`}>@{author.twitter}</a></p>
|
|
|
|
</div>
|