Added Customization.HideVersion configuration to hide version in navgation

This commit is contained in:
Mia Rose Winter 2024-04-18 14:35:38 +02:00
parent d28625c37b
commit 7c909e94e5
Signed by: miawinter
GPG key ID: 4B6F6A83178F595E
2 changed files with 5 additions and 1 deletions

View file

@ -87,7 +87,10 @@
<div class="bg-base-200 p-4 h-full flex flex-col gap-4 w-48 lg:w-64"> <div class="bg-base-200 p-4 h-full flex flex-col gap-4 w-48 lg:w-64">
<NavMenu /> <NavMenu />
<a aria-hidden="true" tabindex="-1" class="absolute left-2 right-2 bottom-2 text-center text-slate-400" href="https://github.com/miawinter98/wave/releases/">@Version</a>
@if (Customizations.Value.HideVersion is not true) {
<a aria-hidden="true" tabindex="-1" class="absolute left-2 right-2 bottom-2 text-center text-slate-400" href="https://github.com/miawinter98/wave/releases/">@Version</a>
}
</div> </div>
</div> </div>
</div> </div>

View file

@ -7,6 +7,7 @@ public class Customization {
public string DefaultTheme { get; set; } = ""; public string DefaultTheme { get; set; } = "";
public string DefaultLanguage { get; set; } = ""; public string DefaultLanguage { get; set; } = "";
public bool DefaultNarrowReader { get; set; } = false; public bool DefaultNarrowReader { get; set; } = false;
public bool HideVersion { get; set; } = false;
public string LogoLink { get; set; } = ""; public string LogoLink { get; set; } = "";
public string IconLink { get; set; } = ""; public string IconLink { get; set; } = "";
public string Footer { get; set; } = ""; public string Footer { get; set; } = "";