Correct embarassing mistake

This commit is contained in:
John Doty 2024-11-25 09:15:12 -08:00
parent 9dfc4ff552
commit 53725e72bb

View file

@ -5,7 +5,7 @@ import dominate.tags as tags
from . import feed
class _time(tags.html_tag):
class time_(tags.html_tag):
"""The <time> HTML element represents a specific period in time. It may
include the datetime attribute to translate dates into machine-readable
format, allowing for better search engine results or custom features such
@ -41,7 +41,7 @@ def _feed_summary(f: feed.Feed) -> tags.li:
{"class": "feed-summary-timestamp"},
tags.i(
f"Posted ",
_time(entry.time_ago(), datetime=entry.posted_time_iso()),
time_(entry.time_ago(), datetime=entry.posted_time_iso()),
" ago",
),
),
@ -115,7 +115,7 @@ def feed_view(feeds: list[feed.Feed]) -> tags.html:
target="_blank",
),
" ",
_time(
time_(
f"({entry.time_ago()})",
datetime=entry.posted_time_iso(),
),