-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path_PostIndex.cshtml
26 lines (23 loc) · 905 Bytes
/
_PostIndex.cshtml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
<div class="home">
<ul class="post-list">
@foreach(var post in Model.DocumentList(Keys.PageDocuments)){
<li>
<header class="post-header">
<h1 class="post-title">
<a class="post-link" href="@Context.GetLink(post)">@post.WithoutSettings.String(BlogKeys.Title)</a>
</h1>
<p class="post-meta">@Html.Partial("_PostMeta", post)</p>
</header>
<div class="post-content">
@post.String(BlogKeys.Excerpt)
</div>
</li>
}
</ul>
</div>
@if(Model.Bool(Keys.HasPreviousPage)) {
<a href="@(Context.GetLink(Model.Document(Keys.PreviousPage)))"><span aria-hidden="true">←</span> Newer</a>
}
@if(Model.Bool(Keys.HasNextPage)) {
<a href="@(Context.GetLink(Model.Document(Keys.NextPage)))">Older <span aria-hidden="true">→</span></a>
}