37 lines
1.2 KiB
HTML
37 lines
1.2 KiB
HTML
<!DOCTYPE html>
|
|
<html lang="en">
|
|
<!-- Copyright (c) 2024 Julian Müller (ChaoticByte) -->
|
|
<head>
|
|
<meta charset="UTF-8">
|
|
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
|
<link rel="icon" type="image/x-icon" href="/static/favicon.ico">
|
|
<link rel="stylesheet" href="/static/style.css">
|
|
<title>{{ if ne .EntryTitle "/" }}{{ .EntryTitle }} - {{ end }}{{ .Title }}</title>
|
|
</head>
|
|
<body>
|
|
{{ if .Entry -}}
|
|
<div class="main">
|
|
<h1>{{ .EntryTitle }}</h1>
|
|
<div class="content">{{ .Entry }}</div>
|
|
<br>
|
|
<p><a href="/">< home</a></p>
|
|
</div>
|
|
{{- else -}}
|
|
<div class="home-main">
|
|
<div class="about">
|
|
<h1>{{ .Title }}</h1>
|
|
{{ if .SiteDescription }}<div class="description">{{ .SiteDescription }}</div>{{ end }}
|
|
</div>
|
|
<input type="text" id="search-box" placeholder="search">
|
|
<div id="search-results" class="hidden"></div>
|
|
<div class="toc" id="toc">
|
|
{{- range $k, $title := .TOC -}}
|
|
<div><a href="{{ $k }}">{{ $title }}</a></div>
|
|
{{- end -}}
|
|
</div>
|
|
</div>
|
|
<script src="/static/search.js"></script>
|
|
{{- end}}
|
|
<footer>{{ range .Footer }}<div>{{ . }}</div>{{ end }}</footer>
|
|
</body>
|
|
</html>
|