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

View File

@ -15,15 +15,17 @@
{{ end }}
<div class="page-list">
<ul>
{{ range .Paginator.Pages }}
<li>{{ .Render "summary/post" }}</li>
{{ else }}
<div>
{{ i18n "no_posts" }}
</div>
{{ end }}
</ul>
{{ with .Paginator.Pages }}
<ul>
{{ range . }}
<li>{{ .Render "summary/post" }}</li>
{{ end }}
</ul>
{{ else }}
<div>
{{ i18n "no_posts" }}
</div>
{{ end }}
</div>
</div>