This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@inject WebApplication1.Services.FormattingUtility Format | |
@model WebApplication1.Post | |
<div class='blog-post' data-post-id="@Model.Id"> | |
<h2 class='title'><a href="@Url.RouteUrl("Post", new { id = Model.Id })">@Model.Title</a></h2> | |
<p class='metadata'> | |
<span>@Format.AsDisplayDate(Model.PostedDate)</span> | |
by <a class="author" href='#'>@Model.Author</a> | |
</p> | |
<section class="body"> |