Something went wrong. Try again.
Personal website
Something went wrong. Try again.
1.6 kB · 53 lines
at master
1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253@* This file is part of NKK.
NKK is free software: you can redistribute it and/or modify it under the terms of the GNU Affero General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.
NKK is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more details.
You should have received a copy of the GNU Affero General Public License along with NKK. If not, see <http://www.gnu.org/licenses/>.*@
@inherits LayoutComponentBase@inject IHttpContextAccessor HttpContextAccessor
<!DOCTYPE html><html lang="en"> <head> <meta charset="utf-8" /> <meta name="viewport" content="width=device-width, initial-scale=1.0" /> <link rel="stylesheet" type="text/css" href="@Assets["/fonts.css"]" /> <link rel="stylesheet" type="text/css" href="@Assets["/style.css"]" /> <script src="@Assets["/moxi.js"]"></script> <script src="@Assets["/jquery.js"]"></script> <script src="@Assets["/htmx.js"]"></script> <meta name="htmx-config" content='{"scrollIntoViewOnBoost":false}' /> <meta name="darkreader-lock" /> <HeadOutlet /> @* blank placeholder title, overriden (usually) in @Body *@ <AppTitle /> </head> <body class="@(HasErrorStatusCode ? "from-red-400! to-red-500!" : null)"> <Header /> <NavMenu /> @Body </body></html><Nhnd_HeadContentFinished />
@code { private bool HasErrorStatusCode => HttpContextAccessor.HttpContext!.Response.StatusCode >= 400;
}