diff --git a/Pages/Index.cshtml b/Pages/Index.cshtml
index 2e3a4ab..9ec0ec2 100644
--- a/Pages/Index.cshtml
+++ b/Pages/Index.cshtml
@@ -1,7 +1,6 @@
@page
@model IndexModel
@{
- ViewData["Title"] = "WotDN";
}
@@ -93,9 +92,6 @@
-
-
-
diff --git a/Pages/Index.cshtml.cs b/Pages/Index.cshtml.cs
index 4b592ca..9563c39 100644
--- a/Pages/Index.cshtml.cs
+++ b/Pages/Index.cshtml.cs
@@ -24,6 +24,7 @@ namespace NightmareCoreWeb2.Pages
public IndexModel(ILogger logger)
{
_logger = logger;
+
conn = new MySqlConnection(connStr);
try
{
@@ -63,9 +64,12 @@ namespace NightmareCoreWeb2.Pages
}
- public void OnGet() {}
+ public void OnGet() {
+ ViewData["Title"] = "WotDN";
+ }
public void OnGetAccount(string name) {
Account a = new Account(name, conn);
+ ViewData["Title"] = name;
CharacterListType = $"{name}'s Characters";
OnlineCharacters = a.characters;
}
diff --git a/Pages/Shared/_Layout.cshtml b/Pages/Shared/_Layout.cshtml
index 1c69155..4c90710 100644
--- a/Pages/Shared/_Layout.cshtml
+++ b/Pages/Shared/_Layout.cshtml
@@ -16,13 +16,16 @@
aria-expanded="false" aria-label="Toggle navigation">
-
+