Use Hugo's partial-returning where possible

Signed-off-by: Danila Fedorin <danila.fedorin@gmail.com>
This commit is contained in:
2026-05-18 21:15:19 -07:00
parent 2032e1cdc2
commit 19550ef1b2
12 changed files with 46 additions and 55 deletions

View File

@@ -2,9 +2,9 @@
{{ .Content }}
{{ i18n "recentPosts" }}:
{{ partial "uniquebyseries.html" (dict "scratch" .Store) }}
{{ $pages := partial "uniquebyseries.html" . }}
<ul class="post-list">
{{ range first 10 (.Store.Get "pages") }}
{{ range first 10 $pages }}
{{ partial "post.html" (dict "page" . "linkSeries" true) }}
{{ end }}
</ul>