oliverbooth.dev/OliverBooth/Pages/Blog/Article.cshtml
Oliver Booth bd999f0ed8
feat: add preliminary /blog routes
This change also introduces toml file config
2023-08-06 15:57:44 +01:00

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") &bull; @Model.Author?.Name</p>
@Html.Raw(Model.SanitizeContent(post.Body))
}