tesses-cms/Tesses.CMS/Assets/PageShell.html

50 lines
1.9 KiB
HTML

<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>{{title}}</title>
<link rel="stylesheet" href="{{rooturl}}bootstrap.min.css">
<link rel="apple-touch-icon" sizes="180x180" href="{{rooturl}}apple-touch-icon.png">
<link rel="icon" type="image/png" sizes="32x32" href="{{rooturl}}favicon-32x32.png">
<link rel="icon" type="image/png" sizes="16x16" href="{{rooturl}}favicon-16x16.png">
<link rel="manifest" href="{{rooturl}}site.webmanifest">
<style>
.wrapped-link {
width: 120px;
}
.wrapped-link a {
word-wrap: break-word;
}
</style>
</head>
<body>
<header>
<nav class="navbar navbar-expand-lg bg-body-tertiary">
<div class="container-fluid">
<a class="navbar-brand" href="{{rooturl}}">{{title}}</a>
<button class="navbar-toggler" type="button" data-bs-toggle="collapse" data-bs-target="#navbarNav" aria-controls="navbarNav" aria-expanded="false" aria-label="Toggle navigation">
<span class="navbar-toggler-icon"></span>
</button>
<div class="collapse navbar-collapse" id="navbarNav">
<ul class="navbar-nav">
<li class="nav-item">
<a class="nav-link {{ if ishome }} active {{ end }}" {{ if ishome }} aria-current="page" {{ end }} href="{{rooturl}}">Home</a>
</li>
{{for url in urls}}
<li class="nav-item">
<a class="nav-link {{ if url.active }} active {{ end }}" {{ if url.active }} aria-current="page" {{ end }} href="{{url.url}}">{{url.text}}</a>
</li>
{{end}}
</ul>
</div>
</div>
</nav>
</header>
<main>
{{body}}
</main>
<script src="{{rooturl}}bootstrap.min.js"></script>
</body>
</html>