diff options
Diffstat (limited to 'templates/tree.html')
-rw-r--r-- | templates/tree.html | 11 |
1 files changed, 10 insertions, 1 deletions
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" }} <!DOCTYPE html> <html> - {{ template "head" . }} + <head> + {{ template "generichead" . }} + {{ if .parent }} + <title>{{ .meta.Title }} — {{ .name }} ({{ .ref }}): {{ .parent }}/</title> + {{ else if .files }} + <title>{{ .meta.Title }} — {{ .name }} ({{ .ref }})</title> + {{ else }} + <title>{{ .meta.Title }} — {{ .name }} ({{ .ref }}): BROKEN???</title> + {{ end }} + </head> <body> {{ template "repoheader" . }} {{ template "nav" . }} |