From 692055e7eeec0f6a9f8a73783f2d09c087147f29 Mon Sep 17 00:00:00 2001 From: Marcell Mars Date: Fri, 12 Feb 2021 03:30:36 +0100 Subject: [PATCH] if there is no _index.md don't show parenthesis in sitemap --- layouts/_default/list.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/layouts/_default/list.html b/layouts/_default/list.html index b428d29..62c1535 100644 --- a/layouts/_default/list.html +++ b/layouts/_default/list.html @@ -7,7 +7,7 @@ {{ end }} {{ $currentFile := (printf "/%s" .File) }} -
Sitemap⁄{{ substr $.Site.Title 0 1 }}{{ substr $.Site.Title 1 }} ({{ $currentDir }})
+
Sitemap⁄{{ substr $.Site.Title 0 1 }}{{ substr $.Site.Title 1 }} {{with $currentDir}}({{ . }}){{ end }}
{{ $s := partialCached "scratch.html" . }} {{ $noTriad := (slice) }}