all repos — legit @ d1774f5a6d25242d659b1a08656de9e20fa84e26

web frontend for git

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="https://cdn.icyphox.sh/fonts/inter.css" type="text/css">
 7    <link rel="icon" type="image/png" size="32x32" href="/static/legit.png">
 8    {{ if .parent }}
 9    <title>{{ .meta.Title }} &mdash; {{ .name }} ({{ .ref }}): {{ .parent }}/</title>
10
11    {{ else if .path }}
12    <title>{{ .meta.Title }} &mdash; {{ .name }} ({{ .ref }}): {{ .path }}</title>
13    {{ else if .files }}
14    <title>{{ .meta.Title }} &mdash; {{ .name }} ({{ .ref }})</title>
15    {{ else if .commit }}
16    <title>{{ .meta.Title }} &mdash; {{ .name }}: {{ .commit.This }}</title>
17    {{ else if .branches }}
18    <title>{{ .meta.Title }} &mdash; {{ .name }}: refs</title>
19    {{ else if .commits }}
20    {{ if .log }}
21    <title>{{ .meta.Title }} &mdash; {{ .name }}: log</title>
22    {{ else }}
23    <title>{{ .meta.Title }} &mdash; {{ .name }}</title>
24    {{ end }}
25    {{ else }}
26    <title>{{ .meta.Title }}</title>
27    {{ end }}
28    {{ if and .servername .gomod }}
29    <meta name="go-import" content="{{ .servername}}/{{ .name }} git https://{{ .servername }}/{{ .name }}">
30    {{ end }}
31    <!-- other meta tags here -->
32  </head>
33{{ end }}