10 lines
291 B
Plaintext
10 lines
291 B
Plaintext
|
@page "/blog/{year:int}/{month:int}/{slug}"
|
||
|
@model OliverBooth.Pages.Blog.Article
|
||
|
|
||
|
@if (Model.Post is { } post)
|
||
|
{
|
||
|
<h1>@post.Title</h1>
|
||
|
<p class="text-muted">@post.Published.ToString("MMMM dd, yyyy") • @Model.Author?.Name</p>
|
||
|
@Html.Raw(Model.SanitizeContent(post.Body))
|
||
|
}
|