From 7386392b8cd08e73e4f5fa6080e8f4fcf20831f6 Mon Sep 17 00:00:00 2001 From: Runxi Yu Date: Sat, 27 Jul 2024 08:00:00 +0800 Subject: Some more HTML sanities --- templates/head.html | 38 ++++++++++++++++++-------------------- 1 file changed, 18 insertions(+), 20 deletions(-) (limited to 'templates/head.html') 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" }} - - - - - - {{ if .parent }} + + + + + + {{ if .parent }} {{ .meta.Title }} — {{ .name }} ({{ .ref }}): {{ .parent }}/ - - {{ else if .path }} + {{ else if .path }} {{ .meta.Title }} — {{ .name }} ({{ .ref }}): {{ .path }} - {{ else if .files }} + {{ else if .files }} {{ .meta.Title }} — {{ .name }} ({{ .ref }}) - {{ else if .commit }} + {{ else if .commit }} {{ .meta.Title }} — {{ .name }}: {{ .commit.This }} - {{ else if .branches }} + {{ else if .branches }} {{ .meta.Title }} — {{ .name }}: refs - {{ else if .commits }} + {{ else if .commits }} {{ if .log }} - {{ .meta.Title }} — {{ .name }}: log + {{ .meta.Title }} — {{ .name }}: log {{ else }} - {{ .meta.Title }} — {{ .name }} + {{ .meta.Title }} — {{ .name }} {{ end }} - {{ else }} + {{ else }} {{ .meta.Title }} - {{ end }} - {{ if and .servername .gomod }} + {{ end }} + {{ if and .servername .gomod }} - {{ end }} - - + {{ end }} + {{ end }} -- cgit v1.2.3