Fix mainSections param
This commit is contained in:
parent
b57ff89fb6
commit
ab28352d1c
1 changed files with 1 additions and 1 deletions
|
@ -6,7 +6,7 @@
|
||||||
</div>
|
</div>
|
||||||
{{- end }}
|
{{- end }}
|
||||||
<div class="cards">
|
<div class="cards">
|
||||||
{{- $mainSections := .Site.Params.mainSections | default (slice "post") }}
|
{{- $mainSections := .Site.Params.mainSections }}
|
||||||
{{- $paginator := .Paginate (where .Data.Pages "Section" "in" $mainSections) }}
|
{{- $paginator := .Paginate (where .Data.Pages "Section" "in" $mainSections) }}
|
||||||
{{- range $paginator.Pages }}
|
{{- range $paginator.Pages }}
|
||||||
<div class="card{{ if and (ge ($.Param "columns") 1) (le ($.Param "columns") 3) }} card--{{ $.Param "columns" }}col{{ else }} card--2col{{ end }}">
|
<div class="card{{ if and (ge ($.Param "columns") 1) (le ($.Param "columns") 3) }} card--{{ $.Param "columns" }}col{{ else }} card--2col{{ end }}">
|
||||||
|
|
Loading…
Reference in a new issue