legit/templates/head.html

34 lines
1.3 KiB
HTML
Raw Permalink Normal View History

2022-12-11 05:52:47 +00:00
{{ define "head" }}
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
2022-12-13 06:20:39 +00:00
<link rel="stylesheet" href="/static/style.css" type="text/css">
2022-12-17 07:16:09 +00:00
<link rel="stylesheet" href="https://cdn.icyphox.sh/fonts/inter.css" type="text/css">
2022-12-19 05:55:49 +00:00
<link rel="icon" type="image/png" size="32x32" href="/static/legit.png">
2023-02-10 06:30:07 +00:00
{{ if .parent }}
<title>{{ .meta.Title }} &mdash; {{ .name }} ({{ .ref }}): {{ .parent }}/</title>
{{ else if .path }}
<title>{{ .meta.Title }} &mdash; {{ .name }} ({{ .ref }}): {{ .path }}</title>
{{ else if .files }}
<title>{{ .meta.Title }} &mdash; {{ .name }} ({{ .ref }})</title>
{{ else if .commit }}
<title>{{ .meta.Title }} &mdash; {{ .name }}: {{ .commit.This }}</title>
{{ else if .branches }}
<title>{{ .meta.Title }} &mdash; {{ .name }}: refs</title>
{{ else if .commits }}
{{ if .log }}
<title>{{ .meta.Title }} &mdash; {{ .name }}: log</title>
{{ else }}
<title>{{ .meta.Title }} &mdash; {{ .name }}</title>
{{ end }}
{{ else }}
<title>{{ .meta.Title }}</title>
{{ end }}
{{ if and .servername .gomod }}
2022-12-19 03:32:23 +00:00
<meta name="go-import" content="{{ .servername}}/{{ .name }} git https://{{ .servername }}/{{ .name }}">
2022-12-18 14:30:19 +00:00
{{ end }}
2022-12-11 05:52:47 +00:00
<!-- other meta tags here -->
</head>
{{ end }}