|
@@ -45,7 +45,11 @@
|
|
|
{{ $show_post := $.Scratch.Get "show_post" }}
|
|
|
{{ if ne $show_post "0" }}
|
|
|
{{ $params := dict "post" . }}
|
|
|
- {{ partial "post_li" $params }}
|
|
|
+ {{ if eq $page.Params.list_format 0 }}
|
|
|
+ {{ partial "post_li_simple" $params }}
|
|
|
+ {{ else }}
|
|
|
+ {{ partial "post_li_detailed" $params }}
|
|
|
+ {{ end }}
|
|
|
{{end}}
|
|
|
|
|
|
{{ end }}
|
|
@@ -72,7 +76,11 @@
|
|
|
{{ $show_post := $.Scratch.Get "show_post" }}
|
|
|
{{ if ne $show_post "0" }}
|
|
|
{{ $params := dict "post" . }}
|
|
|
- {{ partial "post_li" $params }}
|
|
|
+ {{ if eq $page.Params.list_format 0 }}
|
|
|
+ {{ partial "post_li_simple" $params }}
|
|
|
+ {{ else }}
|
|
|
+ {{ partial "post_li_detailed" $params }}
|
|
|
+ {{ end }}
|
|
|
{{end}}
|
|
|
|
|
|
{{ end }}
|