This repository has been archived on 2025-09-28. You can view files and clone it, but you cannot make any changes to it's state, such as pushing and creating new issues, pull requests or comments.
plaintext-encyclopedia/public/index.html

38 lines
1.2 KiB
HTML
Raw Permalink Normal View History

2024-08-27 11:55:01 +02:00
<!DOCTYPE html>
<html lang="en">
2024-08-28 20:29:34 +02:00
<!-- Copyright (c) 2024 Julian Müller (ChaoticByte) -->
2024-08-27 11:55:01 +02:00
<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">
2024-08-28 20:02:31 +02:00
<title>{{ if ne .EntryTitle "/" }}{{ .EntryTitle }} - {{ end }}{{ .Title }}</title>
2024-08-27 11:55:01 +02:00
</head>
<body>
{{ if .Entry -}}
2024-08-27 11:55:01 +02:00
<div class="main">
<h1>{{ .EntryTitle }}</h1>
2025-07-11 22:39:47 +02:00
<div class="content">{{ .Entry }}</div>
<br>
<p><a href="/">&lt; home</a></p>
2024-08-27 11:55:01 +02:00
</div>
{{- else -}}
2024-08-28 19:49:23 +02:00
<div class="home-main">
2024-08-29 13:29:39 +02:00
<div class="about">
<h1>{{ .Title }}</h1>
{{ if .SiteDescription }}<div class="description">{{ .SiteDescription }}</div>{{ end }}
</div>
2024-08-28 19:49:23 +02:00
<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>
2024-08-28 19:49:23 +02:00
</div>
<script src="/static/search.js"></script>
{{- end}}
<footer>{{ range .Footer }}<div>{{ . }}</div>{{ end }}</footer>
2024-08-27 11:55:01 +02:00
</body>
</html>