if there is no _index.md don't show parenthesis in sitemap

This commit is contained in:
Marcell Mars 2021-02-12 03:30:36 +01:00
parent 8674473d0c
commit 692055e7ee

View file

@ -7,7 +7,7 @@
{{ end }}
{{ $currentFile := (printf "/%s" .File) }}
<div class="coretitle"><span class="supt">Sitemap{{ substr $.Site.Title 0 1 }}</span>{{ substr $.Site.Title 1 }} ({{ $currentDir }})</div>
<div class="coretitle"><span class="supt">Sitemap{{ substr $.Site.Title 0 1 }}</span>{{ substr $.Site.Title 1 }} {{with $currentDir}}({{ . }}){{ end }}</div>
{{ $s := partialCached "scratch.html" . }}
{{ $noTriad := (slice) }}