aboutsummaryrefslogtreecommitdiff
path: root/templates/head.html
diff options
context:
space:
mode:
Diffstat (limited to 'templates/head.html')
-rw-r--r--templates/head.html38
1 files changed, 18 insertions, 20 deletions
diff --git a/templates/head.html b/templates/head.html
index b5be55d..f2a3bda 100644
--- a/templates/head.html
+++ b/templates/head.html
@@ -1,32 +1,30 @@
{{ define "head" }}
- <head>
- <meta charset="utf-8">
- <meta name="viewport" content="width=device-width, initial-scale=1">
- <link rel="stylesheet" href="/static/style.css" type="text/css">
- <link rel="icon" type="image/png" size="32x32" href="/static/legit.png">
- {{ if .parent }}
+<head>
+ <meta charset="utf-8" />
+ <meta name="viewport" content="width=device-width, initial-scale=1" />
+ <link rel="stylesheet" href="/static/style.css" type="text/css" />
+ <link rel="icon" type="image/png" size="32x32" href="/static/legit.png" />
+ {{ if .parent }}
<title>{{ .meta.Title }} &mdash; {{ .name }} ({{ .ref }}): {{ .parent }}/</title>
-
- {{ else if .path }}
+ {{ else if .path }}
<title>{{ .meta.Title }} &mdash; {{ .name }} ({{ .ref }}): {{ .path }}</title>
- {{ else if .files }}
+ {{ else if .files }}
<title>{{ .meta.Title }} &mdash; {{ .name }} ({{ .ref }})</title>
- {{ else if .commit }}
+ {{ else if .commit }}
<title>{{ .meta.Title }} &mdash; {{ .name }}: {{ .commit.This }}</title>
- {{ else if .branches }}
+ {{ else if .branches }}
<title>{{ .meta.Title }} &mdash; {{ .name }}: refs</title>
- {{ else if .commits }}
+ {{ else if .commits }}
{{ if .log }}
- <title>{{ .meta.Title }} &mdash; {{ .name }}: log</title>
+ <title>{{ .meta.Title }} &mdash; {{ .name }}: log</title>
{{ else }}
- <title>{{ .meta.Title }} &mdash; {{ .name }}</title>
+ <title>{{ .meta.Title }} &mdash; {{ .name }}</title>
{{ end }}
- {{ else }}
+ {{ else }}
<title>{{ .meta.Title }}</title>
- {{ end }}
- {{ if and .servername .gomod }}
+ {{ end }}
+ {{ if and .servername .gomod }}
<meta name="go-import" content="{{ .servername}}/{{ .name }} git https://{{ .servername }}/{{ .name }}">
- {{ end }}
- <!-- other meta tags here -->
- </head>
+ {{ end }}
+</head>
{{ end }}