Changed ArticleView to only show modification date if it's after publish date
This commit is contained in:
parent
7145c5c616
commit
e709b7f1a9
|
@ -12,7 +12,7 @@
|
|||
title="@Article.PublishDate.ToString("g")">
|
||||
@Article.PublishDate.Humanize()
|
||||
</time>
|
||||
@if (Article.LastModified is not null) {
|
||||
@if (Article.LastModified is not null && Article.LastModified > Article.PublishDate) {
|
||||
<time datetime="@Article.LastModified.Value.ToString("u")"
|
||||
title="@Article.LastModified.Value.ToString("g")">
|
||||
 (@Localizer["ModifiedOn"] @Article.LastModified.Humanize())
|
||||
|
|
Loading…
Reference in a new issue