Changed ArticleView to only show modification date if it's after publish date

This commit is contained in:
Mia Rose Winter 2024-01-22 11:25:17 +01:00
parent 7145c5c616
commit e709b7f1a9
Signed by: miawinter
GPG key ID: 4B6F6A83178F595E

View file

@ -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")">
&ensp;(@Localizer["ModifiedOn"] @Article.LastModified.Humanize())