From e37b0d73683639f2c07f13938af4a7d7e778d519 Mon Sep 17 00:00:00 2001 From: Feuerfuchs Date: Thu, 20 Jun 2019 18:19:29 +0200 Subject: Fix: Hide resource type for home page, too --- template.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/template.go b/template.go index b1dbaf1..f369fb9 100644 --- a/template.go +++ b/template.go @@ -17,7 +17,7 @@ var tpltext = ` {{- $uriParts := split .URI "/" -}} {{- $uriLast := $uriParts | last -}} {{- $uriParts = $uriParts | pop -}} - {{- if eq $uriLast "" -}} + {{- if or (eq (len $uriParts) 1) (eq $uriLast "") -}} {{- $uriLast = $uriParts | last -}} {{- $uriParts = $uriParts | pop -}} {{- end -}} -- cgit v1.2.3-70-g09d2