Improved ArticleView datetime accessibility
This commit is contained in:
parent
db1250213f
commit
47a0c3a8eb
|
@ -17,9 +17,15 @@
|
|||
</AuthorizeView>
|
||||
<p class="mb-6">
|
||||
<small class="text-sm text-neutral-content">
|
||||
@Article.PublishDate.Humanize()
|
||||
<time datetime="@Article.PublishDate.ToString("u")"
|
||||
title="@Article.PublishDate.ToString("g")">
|
||||
@Article.PublishDate.Humanize()
|
||||
</time>
|
||||
@if (Article.LastModified is not null) {
|
||||
<text> (@Localizer["ModifiedOn"] @Article.LastModified.Humanize())</text>
|
||||
<time datetime="@Article.LastModified.Value.ToString("u")"
|
||||
title="@Article.LastModified.Value.ToString("g")">
|
||||
 (@Article.LastModified.Humanize())
|
||||
</time>
|
||||
}
|
||||
</small>
|
||||
</p>
|
||||
|
|
Loading…
Reference in a new issue