diff options
author | Anirudh Oppiliappan <x@icyphox.sh> | 2023-02-18 14:16:43 +0530 |
---|---|---|
committer | Anirudh Oppiliappan <x@icyphox.sh> | 2023-02-18 14:17:47 +0530 |
commit | 1574bbecb5b2856b2018d064a32d2e7f484a58b1 (patch) | |
tree | 0d951885ad44a3df2d0ebeaf99eac2c47ca72c04 /templates/head.html | |
parent | d5a33e9150da61d95ad3ae06f6754a6dd101124a (diff) | |
download | legit-1574bbecb5b2856b2018d064a32d2e7f484a58b1.tar.gz legit-1574bbecb5b2856b2018d064a32d2e7f484a58b1.tar.bz2 legit-1574bbecb5b2856b2018d064a32d2e7f484a58b1.zip |
cleaner titles
by nilix
Diffstat (limited to 'templates/head.html')
-rw-r--r-- | templates/head.html | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/templates/head.html b/templates/head.html index 53487eb..08c572e 100644 --- a/templates/head.html +++ b/templates/head.html @@ -5,6 +5,26 @@ <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/legit.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 }} |