<ol class="posts">
    @foreach (var post in Posts)
    {
        <li class="post card">
            <a href="@post.Slug" data-enhance-nav="false" class="post-heading">@post.Title</a>
            <p>@post.Description</p>
            @if (post.Edited != null)
            {
                var edited = post.Edited ?? DateTime.Now; // this null check should never happen
                <small>
                    Posted: <RenderDateTime Datetime="post.Published"/>
                    &bull;
                    Edited: <RenderDateTime Datetime="@(edited)"/>
                </small>
            }
            else
            {
                <small>Posted: <RenderDateTime Datetime="post.Published"/></small>
            }
        </li>
    }
</ol>