diff options
author | Runxi Yu <me@runxiyu.org> | 2024-07-27 08:00:00 +0800 |
---|---|---|
committer | Runxi Yu <me@runxiyu.org> | 2024-07-27 08:00:00 +0800 |
commit | 7386392b8cd08e73e4f5fa6080e8f4fcf20831f6 (patch) | |
tree | 73330ee296f398b7720312a942bc9d524ece9857 /templates/head.html | |
parent | templates/file.html: Remove line numbers (diff) | |
download | legitrx-7386392b8cd08e73e4f5fa6080e8f4fcf20831f6.tar.gz legitrx-7386392b8cd08e73e4f5fa6080e8f4fcf20831f6.tar.zst legitrx-7386392b8cd08e73e4f5fa6080e8f4fcf20831f6.zip |
Some more HTML sanities
Diffstat (limited to 'templates/head.html')
-rw-r--r-- | templates/head.html | 38 |
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 }} — {{ .name }} ({{ .ref }}): {{ .parent }}/</title> - - {{ else if .path }} + {{ else if .path }} <title>{{ .meta.Title }} — {{ .name }} ({{ .ref }}): {{ .path }}</title> - {{ else if .files }} + {{ else if .files }} <title>{{ .meta.Title }} — {{ .name }} ({{ .ref }})</title> - {{ else if .commit }} + {{ else if .commit }} <title>{{ .meta.Title }} — {{ .name }}: {{ .commit.This }}</title> - {{ else if .branches }} + {{ else if .branches }} <title>{{ .meta.Title }} — {{ .name }}: refs</title> - {{ else if .commits }} + {{ else if .commits }} {{ if .log }} - <title>{{ .meta.Title }} — {{ .name }}: log</title> + <title>{{ .meta.Title }} — {{ .name }}: log</title> {{ else }} - <title>{{ .meta.Title }} — {{ .name }}</title> + <title>{{ .meta.Title }} — {{ .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 }} |