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

33 lines
894 B
HTML
Raw Normal View History

2024-08-27 11:55:01 +02:00
<!DOCTYPE html>
<html lang="en">
<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 .EntryTitle }}{{ .EntryTitle }} - {{ end }}{{ .Title }}</title>
</head>
<body>
{{ if .Entry -}}
<div class="homebtn"><a href="/">home</a></div>
2024-08-27 11:55:01 +02:00
<div class="main">
<h1>{{ .EntryTitle }}</h1>
<div class="content">
{{ .Entry }}
</div>
</div>
{{- else -}}
2024-08-28 19:49:23 +02:00
<div class="home-main">
<input type="text" id="search-box" placeholder="search">
<div id="search-results" class="hidden"></div>
<div class="toc" id="toc">
{{- range .TOC -}}
<div><a href="{{ . }}">{{ . }}</a></div>
{{- end -}}
</div>
2024-08-28 19:49:23 +02:00
</div>
<script src="/static/search.js"></script>
{{- end}}
2024-08-27 11:55:01 +02:00
</body>
</html>