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> <li>
<div class="by"> <div class="by">
<a href={`/users/${comment.user}`}>{comment.user}</a>{' '} <a href={`/users/${comment.user}`}>{comment.user}</a>{' '}
{comment.time_ago} ago {comment.time_ago}
</div> </div>
<div class="text" set:html={comment.content} /> <div class="text" set:html={comment.content} />
<Show when={comment.comments.length}> <Show when={comment.comments.length}>

View file

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