initial commit
This commit is contained in:
parent
2012aa8834
commit
9ddfa58ace
2289 changed files with 11217 additions and 0 deletions
23
themes/hugo-ficurinia/layouts/partials/home_post_list.html
Normal file
23
themes/hugo-ficurinia/layouts/partials/home_post_list.html
Normal file
|
@ -0,0 +1,23 @@
|
|||
{{ $allPostsList := .AllPostsList }}
|
||||
{{ $postsList := $allPostsList }}
|
||||
{{ $featuredPostsList := slice }}
|
||||
{{ $pagination := slice }}
|
||||
{{ if site.Params.enableFeatured | default false }}
|
||||
{{ $featuredPostsList = where $allPostsList "Params.featured" true }}
|
||||
{{ $postsList = union (where $allPostsList "Params.featured" false) (where $allPostsList "Params.featured" nil) }}
|
||||
{{ $pagination = (.Ctx.Paginate $postsList).Pages }}
|
||||
{{ if eq .Ctx.Paginator.PageNumber 1 }}
|
||||
{{- partial "featured_articles.html" $featuredPostsList -}}
|
||||
{{ end }}
|
||||
{{ else }}
|
||||
{{ $pagination = (.Ctx.Paginate $postsList).Pages }}
|
||||
{{ end }}
|
||||
|
||||
{{/* pagination */}}
|
||||
<div class="postlist {{ if site.Params.gridView }}gridView{{ end }}" id="postlist">
|
||||
{{ range $pagination }}
|
||||
{{- partial "article_card.html" . -}}
|
||||
{{ end }}
|
||||
</div>
|
||||
<div id="getNextBtnContainer"></div>
|
||||
{{- partial "paginator.html" .Ctx -}}
|
Loading…
Add table
Add a link
Reference in a new issue