Use time element

This commit is contained in:
2021-11-23 21:57:43 +09:00
parent 74d8f46b08
commit ad3ac4d880
22 changed files with 54 additions and 50 deletions

View File

@ -20,12 +20,12 @@ component QuoteMainColumn(quote *arn.Quote, user *arn.User)
footer.footer.mountable
if quote.EditedBy != ""
span Edited
span.utc-date(data-date=quote.Edited)
time.utc-date(datetime=quote.Edited)
span by
a(href=quote.Editor().Link())= quote.Editor().Nick
else
span Posted
span.utc-date(data-date=quote.Created)
time.utc-date(datetime=quote.Created)
span by
a(href=quote.Creator().Link())= quote.Creator().Nick
span .
@ -40,4 +40,4 @@ component QuoteTabs(quote *arn.Quote, user *arn.User)
component QuoteAnime(anime *arn.Anime, user *arn.User)
a.quote-anime-list-item(href=anime.Link(), title=anime.Title.ByUser(user))
img.quote-anime-list-item-image.lazy(data-src=anime.ImageLink("small"), data-webp="true", data-color=anime.AverageColor(), alt=anime.Title.ByUser(user))
img.quote-anime-list-item-image.lazy(data-src=anime.ImageLink("small"), data-webp="true", data-color=anime.AverageColor(), alt=anime.Title.ByUser(user))