Set friendly date for blog posts

This commit is contained in:
Robert Marshall 2019-04-28 11:43:05 +01:00
parent fa143f5ab4
commit 035f442ba0
5 changed files with 61 additions and 5 deletions

View file

@ -23,7 +23,7 @@
<article>
<h2><a href="/blog/view/@post.Url">@post.Title</a></h2>
@Html.Raw(post.Content)
<small>Posted on @post.Timestamp.ToString()</small>
<small>Posted on @post.Timestamp</small>
<p><a href="/blog/view/@post.Url">Read more...</a></p>
</article>
}