Skip to content

Commit

Permalink
chore(fix): add style
Browse files Browse the repository at this point in the history
  • Loading branch information
ndu committed Aug 25, 2024
1 parent 23025e5 commit ce9b133
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
1 change: 1 addition & 0 deletions research/src/layouts/Layout.astro
Original file line number Diff line number Diff line change
Expand Up @@ -95,6 +95,7 @@ const _ogImage = new URL(
a,
ul,
li,
span,
button,
input {
font-family: 'avenir_book';
Expand Down
9 changes: 7 additions & 2 deletions research/src/pages/[id].astro
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,10 @@ interface Category {
interface ArticleData {
id: string
title: string
authors: { username: string }[]
authors: {
username: string,
twitter_username: string | null
}[]
content: string
views: string
summary: string
Expand Down Expand Up @@ -103,9 +106,11 @@ const formattedDate = formatDate(created_at)
<div class="">
<span>Written by:</span>{' '}
<span class="capitalize">
{article.data?.authors
<a href="" class="text-underline">
{article.data?.authors
.map((author) => author.username)
.join(', ')}
</a>
</span>
</div>

Expand Down

0 comments on commit ce9b133

Please sign in to comment.