From d3ac89d0719b8d144d09b87e32a63ed4df208146 Mon Sep 17 00:00:00 2001 From: Oliver Booth Date: Fri, 5 Jul 2024 17:56:42 +0100 Subject: [PATCH] refactor: use mastodon info from configuration --- OliverBooth/Pages/Shared/_Layout.cshtml | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/OliverBooth/Pages/Shared/_Layout.cshtml b/OliverBooth/Pages/Shared/_Layout.cshtml index 33919e6..b4e6448 100644 --- a/OliverBooth/Pages/Shared/_Layout.cshtml +++ b/OliverBooth/Pages/Shared/_Layout.cshtml @@ -5,6 +5,7 @@ @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}"); @@ -106,7 +107,11 @@