feat: Display relative time on non-JS article info line

Co-authored-by: aider (gemini/gemini-2.5-pro) <aider@aider.chat>
This commit is contained in:
2025-12-04 19:11:27 +00:00
parent bbcb01f8d1
commit a5e762c36b

View File

@@ -73,7 +73,8 @@
<div class="info"> <div class="info">
{{ story.score }} points {{ story.score }} points
by <a href="{{ story.author_link }}">{{ story.author }}</a> by <a href="{{ story.author_link }}">{{ story.author }}</a>
on <a href="{{ story.link }}">{{ story.source }}</a> | &#8203; {{ story.date | fromnow }}
&#8203; on <a href="{{ story.link }}">{{ story.source }}</a> | &#8203;
<a href="/{{ story.id }}/c"> <a href="/{{ story.id }}/c">
{{ story.num_comments }} comment{{ 's' if story.num_comments != 1 }} {{ story.num_comments }} comment{{ 's' if story.num_comments != 1 }}
</a> </a>