From 7e04040e3510370d754c4afa94d78da24b43d13e Mon Sep 17 00:00:00 2001 From: Runxi Yu Date: Sat, 27 Jul 2024 08:00:00 +0800 Subject: More HTML sanification --- templates/head.html | 37 ++++++++----------------------------- 1 file changed, 8 insertions(+), 29 deletions(-) (limited to 'templates/head.html') diff --git a/templates/head.html b/templates/head.html index f2a3bda..ec53412 100644 --- a/templates/head.html +++ b/templates/head.html @@ -1,30 +1,9 @@ -{{ define "head" }} - - - - - - {{ if .parent }} - {{ .meta.Title }} — {{ .name }} ({{ .ref }}): {{ .parent }}/ - {{ else if .path }} - {{ .meta.Title }} — {{ .name }} ({{ .ref }}): {{ .path }} - {{ else if .files }} - {{ .meta.Title }} — {{ .name }} ({{ .ref }}) - {{ else if .commit }} - {{ .meta.Title }} — {{ .name }}: {{ .commit.This }} - {{ else if .branches }} - {{ .meta.Title }} — {{ .name }}: refs - {{ else if .commits }} - {{ if .log }} - {{ .meta.Title }} — {{ .name }}: log - {{ else }} - {{ .meta.Title }} — {{ .name }} - {{ end }} - {{ else }} - {{ .meta.Title }} - {{ end }} - {{ if and .servername .gomod }} - - {{ end }} - +{{ define "generichead" }} + + + + +{{ if and .servername .gomod }} + +{{ end }} {{ end }} -- cgit v1.2.3