Split duplicated .page-list div into separate partial

This commit is contained in:
2022-05-06 21:14:42 -05:00
parent a9d1c25ee4
commit 805dc65ccb
10 changed files with 28 additions and 115 deletions

View File

@ -14,19 +14,7 @@
</div>
{{ 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 }}
</div>
{{ partial "pagination.html" . }}

View File

@ -79,13 +79,7 @@
<div class="related-posts full-width-page-list">
<hr>
<h1>{{ i18n "related_posts" }}</h1>
<div class="page-list">
<ul>
{{ range . }}
<li>{{ .Render "summary/post" }}</li>
{{ end }}
</ul>
</div>
{{ partial "page-list.html" . }}
</div>
{{ end }}