mirror of
https://github.com/tiennm99/HugoBlox-kit.git
synced 2026-10-15 14:16:12 +00:00
fix: feat(project): list associated posts
This commit fixes 3d9a1277a8
Fix #793
See #767
This commit is contained in:
1 parent
2eb58c08b7
commit
eb5c91f8f1
1 file changed
+3
-4
@@ -11,13 +11,12 @@
|
|||||||
|
|
||||||
{{ $paginator := .Paginate .Data.Pages }}
|
{{ $paginator := .Paginate .Data.Pages }}
|
||||||
{{ range $paginator.Pages }}
|
{{ range $paginator.Pages }}
|
||||||
{{ $params := dict "post" . }}
|
|
||||||
{{ if eq $.Params.list_format 0 }}
|
{{ if eq $.Params.list_format 0 }}
|
||||||
{{ partial "post_li_simple" $params }}
|
{{ partial "post_li_simple" . }}
|
||||||
{{ else if eq $.Params.list_format 1 }}
|
{{ else if eq $.Params.list_format 1 }}
|
||||||
{{ partial "post_li_detailed" $params }}
|
{{ partial "post_li_detailed" . }}
|
||||||
{{ else }}
|
{{ else }}
|
||||||
{{ partial "post_li_stream" $params }}
|
{{ partial "post_li_stream" . }}
|
||||||
{{ end }}
|
{{ end }}
|
||||||
{{ end }}
|
{{ end }}
|
||||||
|
|
||||||
|
|||||||
Reference in new issue
Block a user