@using Microsoft.AspNetCore.Mvc.TagHelpers @using OliverBooth.Common.Data.Blog @using OliverBooth.Common.Data.Web @using OliverBooth.Common.Services @using OliverBooth.Data @using OliverBooth.Extensions @inject IBlogPostService BlogPostService @inject ITutorialService TutorialService @inject IConfiguration Configuration @{ HttpRequest request = Context.Request; var url = new Uri($"{request.Scheme}://{request.Host}{request.Path}{request.QueryString}"); SiteTheme siteTheme = request.Cookies["_theme"] switch { "dark" => SiteTheme.Dark, "light" => SiteTheme.Light, _ => SiteTheme.Auto }; } "dark" })">
@if (ViewData["Title"] != null) {