fix: add missing ViewData title assignment

This commit is contained in:
Oliver Booth 2023-08-11 02:08:03 +01:00
parent 1c73ada81c
commit cbb7d07844
Signed by: oliverbooth
GPG Key ID: 725DB725A0D9EE61
2 changed files with 5 additions and 0 deletions

View File

@ -11,6 +11,7 @@
} }
@{ @{
ViewData["Title"] = post.Title;
Author author = Model.Author; Author author = Model.Author;
DateTimeOffset published = post.Published; DateTimeOffset published = post.Published;
} }

View File

@ -1,6 +1,10 @@
@page @page
@model OliverBooth.Pages.Blog.Index @model OliverBooth.Pages.Blog.Index
@{
ViewData["Title"] = "Blog";
}
<div id="all-blog-posts"> <div id="all-blog-posts">
@await Html.PartialAsync("_LoadingSpinner") @await Html.PartialAsync("_LoadingSpinner")
</div> </div>