Add blog navigation
This commit is contained in:
parent
3d00f28657
commit
9fd9beb860
5 changed files with 42 additions and 12 deletions
|
@ -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>
|
Loading…
Add table
Add a link
Reference in a new issue