@@ -20,12 +26,13 @@
@post.Title
-
- @Model.Author?.Name
- •
-
- Published @post.Published.Humanize()
+
+ @author.Name •
+
+
+ Published @published.Humanize()
+
@if (post.Updated is { } updated)
{
•
@@ -33,6 +40,7 @@
Updated @updated.Humanize()
}
+
@if (post.EnableComments)
{
•
@@ -40,6 +48,7 @@
}
+
@Html.Raw(BlogService.GetContent(post))
diff --git a/OliverBooth/Pages/Blog/Index.cshtml b/OliverBooth/Pages/Blog/Index.cshtml
index ba7c786..99b7564 100644
--- a/OliverBooth/Pages/Blog/Index.cshtml
+++ b/OliverBooth/Pages/Blog/Index.cshtml
@@ -1,4 +1,4 @@
-@page
+@page
@using Humanizer
@using OliverBooth.Data.Blog
@using OliverBooth.Services
@@ -28,21 +28,23 @@
-
- @author?.Name
- •
+
+ @author?.Name •
+
@(isUpdated ? "Updated" : "Published") @timestamp.Humanize()
+
@if (post.EnableComments)
{
- •
+ •
+ data-disqus-identifier="@post.GetDisqusIdentifier()">
0 Comments
}