From ca31a63bb76f7ab5ade7d51fec91278f1612c166 Mon Sep 17 00:00:00 2001 From: Oliver Booth Date: Fri, 11 Aug 2023 02:08:18 +0100 Subject: [PATCH] feat: use ViewData title in layout --- OliverBooth/Pages/Shared/_Layout.cshtml | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/OliverBooth/Pages/Shared/_Layout.cshtml b/OliverBooth/Pages/Shared/_Layout.cshtml index 330faf9..17f8353 100644 --- a/OliverBooth/Pages/Shared/_Layout.cshtml +++ b/OliverBooth/Pages/Shared/_Layout.cshtml @@ -4,7 +4,14 @@ - Oliver Booth + @if (ViewData["Title"] != null) + { + @ViewData["Title"] - Oliver Booth + } + else + { + Oliver Booth + }