Add blog navigation

This commit is contained in:
Robert Marshall 2020-01-03 16:44:40 +00:00
parent 3d00f28657
commit 9fd9beb860
5 changed files with 42 additions and 12 deletions

View file

@ -0,0 +1,9 @@
@model System.Collections.Generic.IEnumerable<Website.Models.BlogPost>
<h5>Blog:</h5>
<ul class="nav-list">
@foreach (var post in Model) {
<li class="nav-list__link"><a href="/blog/view/@post.Url">@post.Title</a></li>
}
<li><a href="/blog">View All</a></li>
</ul>