From 1574bbecb5b2856b2018d064a32d2e7f484a58b1 Mon Sep 17 00:00:00 2001 From: Anirudh Oppiliappan Date: Sat, 18 Feb 2023 14:16:43 +0530 Subject: cleaner titles by nilix --- templates/head.html | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) (limited to 'templates/head.html') diff --git a/templates/head.html b/templates/head.html index 53487eb..08c572e 100644 --- a/templates/head.html +++ b/templates/head.html @@ -5,6 +5,26 @@ + {{ 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 }} -- cgit