@using OliverBooth.Data.Blog
@using OliverBooth.Services
@inject IBlogPostService BlogPostService
@{
HttpRequest request = Context.Request;
var url = new Uri($"{request.Scheme}://{request.Host}{request.Path}{request.QueryString}");
}
@if (ViewData["Title"] != null)
{
@ViewData["Title"] - Oliver Booth
}
else
{
Oliver Booth
}
@if (ViewData["Post"] is IBlogPost post)
{
string excerpt = BlogPostService.RenderExcerpt(post, out bool trimmed);
}
else
{
}
@if (DateTimeOffset.UtcNow < new DateTime(2024, 03, 08))
{
}
@RenderBody()
@await RenderSectionAsync("Scripts", required: false)