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