From 1932520b6ac4c6e8af8d9d86dc67caa8c89f8b26 Mon Sep 17 00:00:00 2001 From: Mia Winter Date: Wed, 27 Mar 2024 11:23:02 +0100 Subject: [PATCH] Added meta and open graph headers to user pages --- Wave/Components/Pages/UserView.razor | 19 ++++++++++++++++--- .../Components/Pages/UserView.de-DE.resx | 6 ++++++ Wave/Resources/Components/Pages/UserView.resx | 6 ++++++ 3 files changed, 28 insertions(+), 3 deletions(-) diff --git a/Wave/Components/Pages/UserView.razor b/Wave/Components/Pages/UserView.razor index 6e5496d..a320fbf 100644 --- a/Wave/Components/Pages/UserView.razor +++ b/Wave/Components/Pages/UserView.razor @@ -4,6 +4,7 @@ @using Microsoft.Extensions.Options @using Wave.Utilities +@inject NavigationManager Navigation @inject IDbContextFactory ContextFactory @inject IOptions Customizations @inject IOptions Features @@ -11,9 +12,21 @@ @inject IMessageDisplay Message - @if (Features.Value.Rss && User is not null) { - - + @if (User is not null) { + + + + + + + + + + + @if (Features.Value.Rss) { + + + } } @if (User is null) { diff --git a/Wave/Resources/Components/Pages/UserView.de-DE.resx b/Wave/Resources/Components/Pages/UserView.de-DE.resx index ec7f63d..ad9f859 100644 --- a/Wave/Resources/Components/Pages/UserView.de-DE.resx +++ b/Wave/Resources/Components/Pages/UserView.de-DE.resx @@ -119,4 +119,10 @@ Ihr Profil ist momentan nicht öffentlich einsehbar. + + Authorenprofil von {0} auf {1} + + + {0} auf {1} + \ No newline at end of file diff --git a/Wave/Resources/Components/Pages/UserView.resx b/Wave/Resources/Components/Pages/UserView.resx index a4092dd..7c6edba 100644 --- a/Wave/Resources/Components/Pages/UserView.resx +++ b/Wave/Resources/Components/Pages/UserView.resx @@ -119,4 +119,10 @@ Your profile is currently not publicly visible. + + Author Profile of {0} on {1} + + + {0} on {1} + \ No newline at end of file