Split duplicated .page-list div into separate partial

This commit is contained in:
bbaovanc committed 2022-05-06 21:14:42 -05:00
1 parent a9d1c25ee4
commit 805dc65ccb
10 files changed
+28 -115

No files matched your search

+1 -13
View File
@@ -9,19 +9,7 @@
{{ . }}
{{ end }}
<div class="page-list">
{{ with .Paginator.Pages }}
<ul>
{{ range . }}
<li>{{ .Render "summary/post" }}</li>
{{ end }}
</ul>
{{ else }}
<div>
{{ i18n "no_posts" }}
</div>
{{ end }}
</div>
{{ partial "page-list.html" .Paginator.Pages }}
{{ partial "pagination.html" . }}
{{ end }}