Rework layout

This commit is contained in:
Laura Hausmann 2022-11-26 14:09:03 +01:00
parent 09587b0dba
commit b44a4762d1
Signed by: zotan
GPG key ID: D044E84C5BE01605

View file

@ -23,8 +23,12 @@
<h1>
@{
var path = Context.Request.Path.Value?.TrimStart('/').Split("/");
var sublink = path?.Length >= 1 ? path[0] : "/";
var subsublink = path?.Length >= 2 ? path[1] : "/";
var sublink = path?.Length >= 1 ? path[0] : "";
var subsublink = path?.Length >= 2 ? path[1] : "";
if (sublink.ToLowerInvariant().Equals("error")) {
sublink = "";
}
}
@if (ViewData.ContainsKey("subtitle")) {
<span>
@ -53,4 +57,4 @@
@await RenderSectionAsync("postfooter", false)
</div>
</body>
</html>
</html>