1
0
mirror of https://github.com/BBaoVanC/bobatheme.git synced 2025-06-22 21:27:30 -05:00

Don't put the no_posts message inside a <ul>

This commit is contained in:
2021-11-25 23:34:56 -06:00
parent ebcbccb3bb
commit 6bedf987d6
9 changed files with 108 additions and 74 deletions

@ -10,12 +10,18 @@
</h1>
<div class="taxonomy">
<ul>
{{ range .Data.Terms.Alphabetical }}
<li>
<a href="{{ .Page.Permalink }}">{{ .Page.Title | markdownify }}</a>
</li>
{{ end }}
</ul>
{{ with .Data.Terms.Alphabetical }}
<ul>
{{ range . }}
<li>
<a href="{{ .Page.Permalink }}">{{ .Page.Title | markdownify }}</a>
</li>
{{ end }}
</ul>
{{ else }}
<div>
{{ i18n "no_posts" }}
</div>
{{ end }}
</div>
{{ end }}