templates/head.html (view raw)
1{{ define "head" }}
2<head>
3 <meta charset="utf-8" />
4 <meta name="viewport" content="width=device-width, initial-scale=1" />
5 <link rel="stylesheet" href="/static/style.css" type="text/css" />
6 <link rel="stylesheet" href="/static/catppuccin.css" type="text/css" />
7 <link rel=icon href=https://5ika.ch/favicon.ico> {{ if .parent }}
8 <title>
9 {{ .meta.Title }} — {{ .name }} ({{ .ref }}): {{ .parent }}/
10 </title>
11
12 {{ else if .path }}
13 <title>{{ .meta.Title }} — {{ .name }} ({{ .ref }}): {{ .path }}</title>
14 {{ else if .files }}
15 <title>{{ .meta.Title }} — {{ .name }} ({{ .ref }})</title>
16 {{ else if .commit }}
17 <title>{{ .meta.Title }} — {{ .name }}: {{ .commit.This }}</title>
18 {{ else if .branches }}
19 <title>{{ .meta.Title }} — {{ .name }}: refs</title>
20 {{ else if .commits }} {{ if .log }}
21 <title>{{ .meta.Title }} — {{ .name }}: log</title>
22 {{ else }}
23 <title>{{ .meta.Title }} — {{ .name }} @5ika.ch</title>
24 {{ end }} {{ else }}
25 <title>{{ .meta.Title }} @5ika.ch</title>
26 {{ end }} {{ if and .servername .gomod }}
27 <meta
28 name="go-import"
29 content="{{ .servername}}/{{ .name }} git https://{{ .servername }}/{{ .name }}"
30 />
31 {{ end }}
32 <!-- other meta tags here -->
33</head>
34{{ end }}