remove extra "ago" in hackernews example (#7409)
This commit is contained in:
parent
d2020c29cf
commit
354387c68e
2 changed files with 2 additions and 2 deletions
|
@ -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}>
|
||||
|
|
|
@ -25,7 +25,7 @@ const story = (await fetchAPI(`item/${id}`)) as IStory;
|
|||
<a href={`/users/${story.user}`}>
|
||||
{story.user}
|
||||
</a>
|
||||
{story.time_ago} ago
|
||||
{story.time_ago}
|
||||
</p>
|
||||
</header>
|
||||
<main>
|
||||
|
|
Loading…
Reference in a new issue