mirror of
https://github.com/tiennm99/HugoBlox-kit.git
synced 2026-10-15 00:16:48 +00:00
post archive: display listings consistent with posts widget (Close #262)
This commit is contained in:
1 parent
b031608ee4
commit
f42cfe7d1a
3 files changed
+4
-21
No files matched your search
@@ -1,5 +1,4 @@
|
|||||||
{{ $post := .post }}
|
{{ $post := .post }}
|
||||||
{{ $page := .page }}
|
|
||||||
|
|
||||||
<div class="article-list-item" itemscope itemprop="blogPost">
|
<div class="article-list-item" itemscope itemprop="blogPost">
|
||||||
{{ $preview := $post.Params.header.preview | default true }}
|
{{ $preview := $post.Params.header.preview | default true }}
|
||||||
|
|||||||
@@ -44,7 +44,7 @@
|
|||||||
|
|
||||||
{{ $show_post := $.Scratch.Get "show_post" }}
|
{{ $show_post := $.Scratch.Get "show_post" }}
|
||||||
{{ if ne $show_post "0" }}
|
{{ if ne $show_post "0" }}
|
||||||
{{ $params := dict "post" . "page" $page }}
|
{{ $params := dict "post" . }}
|
||||||
{{ partial "post_li" $params }}
|
{{ partial "post_li" $params }}
|
||||||
{{end}}
|
{{end}}
|
||||||
|
|
||||||
@@ -71,7 +71,7 @@
|
|||||||
|
|
||||||
{{ $show_post := $.Scratch.Get "show_post" }}
|
{{ $show_post := $.Scratch.Get "show_post" }}
|
||||||
{{ if ne $show_post "0" }}
|
{{ if ne $show_post "0" }}
|
||||||
{{ $params := dict "post" . "page" $page }}
|
{{ $params := dict "post" . }}
|
||||||
{{ partial "post_li" $params }}
|
{{ partial "post_li" $params }}
|
||||||
{{end}}
|
{{end}}
|
||||||
|
|
||||||
|
|||||||
@@ -13,24 +13,8 @@
|
|||||||
|
|
||||||
{{ $paginator := .Paginate .Data.Pages }}
|
{{ $paginator := .Paginate .Data.Pages }}
|
||||||
{{ range $paginator.Pages }}
|
{{ range $paginator.Pages }}
|
||||||
<div>
|
{{ $params := dict "post" . }}
|
||||||
{{ if .Params.image }}
|
{{ partial "post_li" $params }}
|
||||||
<a href="{{ .Permalink }}">
|
|
||||||
<img src="{{ $.Site.BaseURL }}img/{{ .Params.image }}" class="article-banner">
|
|
||||||
</a>
|
|
||||||
{{end}}
|
|
||||||
<h2><a href="{{ .Permalink }}">{{ .Title }}</a></h2>
|
|
||||||
{{ partial "article_metadata" (dict "content" . "is_list" 1) }}
|
|
||||||
<div class="article-style"><p>
|
|
||||||
{{ if .Params.summary }}
|
|
||||||
{{ printf "%s" .Params.summary | markdownify }}
|
|
||||||
{{ else if .Truncated }}
|
|
||||||
{{ printf "%s" .Summary | markdownify }}
|
|
||||||
{{ else }}
|
|
||||||
{{ .Content }}
|
|
||||||
{{ end }}
|
|
||||||
</p></div>
|
|
||||||
</div>
|
|
||||||
{{ end }}
|
{{ end }}
|
||||||
|
|
||||||
{{ partial "pagination" . }}
|
{{ partial "pagination" . }}
|
||||||
|
|||||||
Reference in new issue
Block a user