-
Notifications
You must be signed in to change notification settings - Fork 2
/
template_index_html.go
51 lines (49 loc) · 1.12 KB
/
template_index_html.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
// SPDX-FileCopyrightText: 2020 Shulhan <[email protected]>
// SPDX-License-Identifier: GPL-3.0-or-later
package ciigo
const templateIndexHTML = `<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta name="theme-color" content="#375EAB">
{{- range $k, $v := .Metadata}}
<meta name="{{$k}}" content="{{$v}}">
{{- end}}
<title>{{.Title}}</title>
{{- if .EmbeddedCSS}}
<style>
{{.EmbeddedCSS}}
</style>
{{- end}}
{{- range .Styles}}
<link rel="stylesheet" href="{{.}}">
{{- end}}
</head>
<body>
<div class="topbar">
<div class="container">
<div class="top-heading">
<a href="/">{{.Title}}</a>
</div>
<div class="menu">
<form class="item" action="/_internal/search">
<input type="text" name="q" placeholder="Search" />
</form>
</div>
</div>
</div>
<div class="page">
<div class="container">
{{.Body}}
</div>
</div>
<div class="footer">
Powered by <a
href="https://git.sr.ht/~shulhan/ciigo"
>
ciigo
</a>
</div>
</body>
</html>`