51 lines
1.8 KiB
Plaintext
51 lines
1.8 KiB
Plaintext
@{
|
|
ViewContext.HttpContext.Response.Headers.Add("Vary", "Hx-Request");
|
|
}
|
|
|
|
@if (ViewContext.HttpContext.Request.Headers["Hx-Request"].Contains("true"))
|
|
{
|
|
@RenderBody()
|
|
return;
|
|
}
|
|
|
|
<!DOCTYPE html>
|
|
<html lang="en" data-theme="dark">
|
|
<head>
|
|
<meta charset="utf-8"/>
|
|
<meta name="viewport" content="width=device-width, initial-scale=1.0"/>
|
|
<title>@ViewData["Title"] | FastBlog.Web</title>
|
|
<link rel="stylesheet" href="~/css/pico.min.css" asp-append-version="true"/>
|
|
<link rel="stylesheet" href="~/css/pico.colors.min.css" asp-append-version="true"/>
|
|
<link rel="stylesheet" href="~/FastBlog.Web.styles.css" asp-append-version="true"/>
|
|
<link rel="stylesheet" href="~/lib/highlight-js/styles/github-dark.min.css" asp-append-version="true"/>
|
|
<link rel="stylesheet" href="~/css/site.css" asp-append-version="true"/>
|
|
</head>
|
|
<body>
|
|
<script src="~/js/htmx.min.js"></script>
|
|
<header class="nav-container">
|
|
<div>
|
|
<nav>
|
|
<ul>
|
|
<li><a href="~/"><h1>the1mason</h1></a></li>
|
|
<li><a href="~/blog/list">Blog</a></li>
|
|
</ul>
|
|
<ul>
|
|
<li><a href="https://github.com/the1mason">GitHub</a></li>
|
|
<li><a href="mailto://mail@the1mason.com">Mail</a></li>
|
|
<li><a href="https://linkedin.com/in/the1mason">LinkedIn</a></li>
|
|
</ul>
|
|
</nav>
|
|
</div>
|
|
</header>
|
|
|
|
<div class="body" id="body">
|
|
<main role="main">
|
|
@RenderBody()
|
|
</main>
|
|
</div>
|
|
<script src="~/lib/jquery/dist/jquery.min.js"></script>
|
|
<script src="~/js/site.js" asp-append-version="true"></script>
|
|
<script src="~/lib/highlight-js/highlight.min.js" asp-append-version="true"></script>
|
|
@await RenderSectionAsync("Scripts", required: false)
|
|
</body>
|
|
</html> |