feat(Logo): Konvertierung von Klassen in ein Wörterbuch anstelle von getrennten Eigenschaften
This commit is contained in:
@@ -3,9 +3,9 @@
|
||||
public class Logo
|
||||
{
|
||||
public string Src { get; init; } = string.Empty;
|
||||
|
||||
public string LockedPageClass { get; init; } = string.Empty;
|
||||
|
||||
public string ShowPageClass { get; init; } = string.Empty;
|
||||
public Dictionary<string, string> Classes { get; init; } = new();
|
||||
|
||||
public string ClassIn(string page) => Classes.TryGetValue(page, out var cls) && cls is not null ? cls : string.Empty;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user