diff --git a/layouts/partials/post_li.html b/layouts/partials/post_li.html index 1fb8052e..11251b6a 100644 --- a/layouts/partials/post_li.html +++ b/layouts/partials/post_li.html @@ -1,5 +1,4 @@ {{ $post := .post }} -{{ $page := .page }}
{{ $preview := $post.Params.header.preview | default true }} diff --git a/layouts/partials/widgets/posts.html b/layouts/partials/widgets/posts.html index 87421369..7069cc95 100644 --- a/layouts/partials/widgets/posts.html +++ b/layouts/partials/widgets/posts.html @@ -44,7 +44,7 @@ {{ $show_post := $.Scratch.Get "show_post" }} {{ if ne $show_post "0" }} - {{ $params := dict "post" . "page" $page }} + {{ $params := dict "post" . }} {{ partial "post_li" $params }} {{end}} @@ -71,7 +71,7 @@ {{ $show_post := $.Scratch.Get "show_post" }} {{ if ne $show_post "0" }} - {{ $params := dict "post" . "page" $page }} + {{ $params := dict "post" . }} {{ partial "post_li" $params }} {{end}} diff --git a/layouts/section/post.html b/layouts/section/post.html index 4f1543c1..fcd5682b 100644 --- a/layouts/section/post.html +++ b/layouts/section/post.html @@ -13,24 +13,8 @@ {{ $paginator := .Paginate .Data.Pages }} {{ range $paginator.Pages }} -
- {{ if .Params.image }} - - - - {{end}} -

{{ .Title }}

- {{ partial "article_metadata" (dict "content" . "is_list" 1) }} -

- {{ if .Params.summary }} - {{ printf "%s" .Params.summary | markdownify }} - {{ else if .Truncated }} - {{ printf "%s" .Summary | markdownify }} - {{ else }} - {{ .Content }} - {{ end }} -

-
+ {{ $params := dict "post" . }} + {{ partial "post_li" $params }} {{ end }} {{ partial "pagination" . }}