34 lines
1.3 KiB
HTML
34 lines
1.3 KiB
HTML
{{ 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="stylesheet" href="https://cdn.icyphox.sh/fonts/inter.css" type="text/css">
|
|
<link rel="icon" type="image/png" size="32x32" href="/static/bunny.png">
|
|
{{ if .parent }}
|
|
<title>{{ .meta.Title }} — {{ .name }} ({{ .ref }}): {{ .parent }}/</title>
|
|
|
|
{{ else if .path }}
|
|
<title>{{ .meta.Title }} — {{ .name }} ({{ .ref }}): {{ .path }}</title>
|
|
{{ else if .files }}
|
|
<title>{{ .meta.Title }} — {{ .name }} ({{ .ref }})</title>
|
|
{{ else if .commit }}
|
|
<title>{{ .meta.Title }} — {{ .name }}: {{ .commit.This }}</title>
|
|
{{ else if .branches }}
|
|
<title>{{ .meta.Title }} — {{ .name }}: refs</title>
|
|
{{ else if .commits }}
|
|
{{ if .log }}
|
|
<title>{{ .meta.Title }} — {{ .name }}: log</title>
|
|
{{ else }}
|
|
<title>{{ .meta.Title }} — {{ .name }}</title>
|
|
{{ end }}
|
|
{{ else }}
|
|
<title>{{ .meta.Title }}</title>
|
|
{{ end }}
|
|
{{ if and .servername .gomod }}
|
|
<meta name="go-import" content="{{ .servername}}/{{ .name }} git https://{{ .servername }}/{{ .name }}">
|
|
{{ end }}
|
|
<!-- other meta tags here -->
|
|
</head>
|
|
{{ end }} |