0
Fork 0
mirror of https://github.com/withastro/astro.git synced 2024-12-16 21:46:22 -05:00

remove extra "ago" in hackernews example (#7409)

This commit is contained in:
Kevin Zuniga Cuellar 2023-06-18 23:55:40 -04:00 committed by GitHub
parent d2020c29cf
commit 354387c68e
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

View file

@ -14,7 +14,7 @@ const { comment } = Astro.props;
<li>
<div class="by">
<a href={`/users/${comment.user}`}>{comment.user}</a>{' '}
{comment.time_ago} ago
{comment.time_ago}
</div>
<div class="text" set:html={comment.content} />
<Show when={comment.comments.length}>

View file

@ -25,7 +25,7 @@ const story = (await fetchAPI(`item/${id}`)) as IStory;
<a href={`/users/${story.user}`}>
{story.user}
</a>
{story.time_ago} ago
&nbsp;{story.time_ago}
</p>
</header>
<main>