-
Notifications
You must be signed in to change notification settings - Fork 10
Expand file tree
/
Copy pathpost.cshtml
More file actions
27 lines (26 loc) · 884 Bytes
/
Copy pathpost.cshtml
File metadata and controls
27 lines (26 loc) · 884 Bytes
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
27
@using PowerSite
@using PowerSite.Actions
@using PowerSite.DataModel
@model Document
@{
Layout = "BlogLayout.cshtml";
ViewBag.Author = Model.Author.Name ?? Site.Current.Author.Name;
ViewBag.Title = Model.Title + " - " + Site.Current.Title;
ViewBag.TagPath = "/" + Site.Current.BlogPath.Trim('/') + "/tags";
}
<div class="blog-post">
<h2 class="blog-post-title">@Model.Title</h2>
<p class="blog-post-meta">
<span class="blog-post-time">@Model.DateString</span> by <a class="blog-post-author" href="@Model.Author.Url">@Model.Author.Name</a>
</p>
@Raw(Model.RenderedContent)
<div class="panel-footer">
Tagged:
<ul class="list-inline label">
@foreach (var tag in Model.Tags)
{
<li><a href="@ViewBag.TagPath/@tag.Slugify()/">@tag</a></li>
}
</ul>
</div>
</div>