From cbb7d0784481cc38453558c5617f59e05733d067 Mon Sep 17 00:00:00 2001 From: Oliver Booth Date: Fri, 11 Aug 2023 02:08:03 +0100 Subject: [PATCH] fix: add missing ViewData title assignment --- OliverBooth/Pages/Blog/Article.cshtml | 1 + OliverBooth/Pages/Blog/Index.cshtml | 4 ++++ 2 files changed, 5 insertions(+) diff --git a/OliverBooth/Pages/Blog/Article.cshtml b/OliverBooth/Pages/Blog/Article.cshtml index e853552..8ad1dc7 100644 --- a/OliverBooth/Pages/Blog/Article.cshtml +++ b/OliverBooth/Pages/Blog/Article.cshtml @@ -11,6 +11,7 @@ } @{ + ViewData["Title"] = post.Title; Author author = Model.Author; DateTimeOffset published = post.Published; } diff --git a/OliverBooth/Pages/Blog/Index.cshtml b/OliverBooth/Pages/Blog/Index.cshtml index be94910..6a51288 100644 --- a/OliverBooth/Pages/Blog/Index.cshtml +++ b/OliverBooth/Pages/Blog/Index.cshtml @@ -1,6 +1,10 @@ @page @model OliverBooth.Pages.Blog.Index +@{ + ViewData["Title"] = "Blog"; +} +
@await Html.PartialAsync("_LoadingSpinner")