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/tree.html | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) (limited to 'templates/tree.html') diff --git a/templates/tree.html b/templates/tree.html index 6634a5c..939767a 100644 --- a/templates/tree.html +++ b/templates/tree.html @@ -1,7 +1,16 @@ {{ define "tree" }} - {{ template "head" . }} + + {{ template "generichead" . }} + {{ if .parent }} + {{ .meta.Title }} — {{ .name }} ({{ .ref }}): {{ .parent }}/ + {{ else if .files }} + {{ .meta.Title }} — {{ .name }} ({{ .ref }}) + {{ else }} + {{ .meta.Title }} — {{ .name }} ({{ .ref }}): BROKEN??? + {{ end }} + {{ template "repoheader" . }} {{ template "nav" . }} -- cgit v1.2.3