diff options
author | 2023-06-18 23:55:40 -0400 | |
---|---|---|
committer | 2023-06-19 11:55:40 +0800 | |
commit | 354387c68e15966d185ae1eb88d79ac7919b3f1f (patch) | |
tree | 6637a0d346ef08fd19d6a22257bf1d78182d66b9 /examples/hackernews | |
parent | d2020c29cf285e699f92143a70ffa30a85122bb4 (diff) | |
download | astro-354387c68e15966d185ae1eb88d79ac7919b3f1f.tar.gz astro-354387c68e15966d185ae1eb88d79ac7919b3f1f.tar.zst astro-354387c68e15966d185ae1eb88d79ac7919b3f1f.zip |
remove extra "ago" in hackernews example (#7409)
Diffstat (limited to 'examples/hackernews')
-rw-r--r-- | examples/hackernews/src/components/Comment.astro | 2 | ||||
-rw-r--r-- | examples/hackernews/src/pages/stories/[id].astro | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/examples/hackernews/src/components/Comment.astro b/examples/hackernews/src/components/Comment.astro index 8327e666c..6137f4e1d 100644 --- a/examples/hackernews/src/components/Comment.astro +++ b/examples/hackernews/src/components/Comment.astro @@ -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}> diff --git a/examples/hackernews/src/pages/stories/[id].astro b/examples/hackernews/src/pages/stories/[id].astro index 6cd17ea45..84383aa9e 100644 --- a/examples/hackernews/src/pages/stories/[id].astro +++ b/examples/hackernews/src/pages/stories/[id].astro @@ -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> |