From 1cdad4c17ce46c4530103dd898cfe4513c32c134 Mon Sep 17 00:00:00 2001 From: Oliver Booth Date: Mon, 14 Aug 2023 00:58:58 +0100 Subject: [PATCH] fix(blog): set post in ViewData for article --- OliverBooth/Pages/Blog/Article.cshtml | 1 + 1 file changed, 1 insertion(+) diff --git a/OliverBooth/Pages/Blog/Article.cshtml b/OliverBooth/Pages/Blog/Article.cshtml index 2043834..2b30980 100644 --- a/OliverBooth/Pages/Blog/Article.cshtml +++ b/OliverBooth/Pages/Blog/Article.cshtml @@ -9,6 +9,7 @@ } @{ + ViewData["Post"] = post; ViewData["Title"] = post.Title; IBlogAuthor author = post.Author; DateTimeOffset published = post.Published;