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>
|
<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}>
|
||||||
|
|
|
@ -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
|
{story.time_ago}
|
||||||
</p>
|
</p>
|
||||||
</header>
|
</header>
|
||||||
<main>
|
<main>
|
||||||
|
|
Loading…
Add table
Reference in a new issue