Skip to content

Commit e8b6433

Browse files
committed
post nav and related added.
1 parent 2b83052 commit e8b6433

File tree

2 files changed

+27
-0
lines changed

2 files changed

+27
-0
lines changed
Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
<%@ Control Language="C#" AutoEventWireup="true" EnableViewState="false" Inherits="BlogEngine.Core.Web.Controls.PostNavigationBase" %>
2+
<div id="postnavigation" class="navigation-posts well-global clearfix">
3+
<div class="text-left next-post">
4+
<% if (!string.IsNullOrEmpty(NextPostUrl))
5+
{ %>
6+
<a href="<%=NextPostUrl %>" class="nav-next">&larr; <%=NextPostTitle %> </a>
7+
<% } %>
8+
</div>
9+
<div class="text-right prev-post ">
10+
<% if (!string.IsNullOrEmpty(PreviousPostUrl))
11+
{ %>
12+
<a href="<%=PreviousPostUrl %>" class="nav-prev"><%=PreviousPostTitle %> &rarr;</a>
13+
<% } %>
14+
</div>
15+
</div>
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
<%@ Control Language="C#" AutoEventWireup="true" EnableViewState="false" Inherits="BlogEngine.Core.Web.Controls.RelatedPostsBase" %>
2+
<div id="relatedPosts" class="related-posts well-global">
3+
<h3 class="well-global-title"><%=Resources.labels.relatedPosts %></h3>
4+
<ul class="list-unstyled">
5+
<%foreach (var item in RelatedPostList)
6+
{%>
7+
<li><a href="<%=item.Link %>"><%=item.Title %></a>
8+
<div><small class="text-muted"><%=item.Description %></small></div>
9+
</li>
10+
<% } %>
11+
</ul>
12+
</div>

0 commit comments

Comments
 (0)