Fix mainSections param

This commit is contained in:
vimux 2019-03-21 11:21:36 -04:00
parent b57ff89fb6
commit ab28352d1c
No known key found for this signature in database
GPG key ID: 5A34FDC4EE832E34

View file

@ -6,7 +6,7 @@
</div>
{{- end }}
<div class="cards">
{{- $mainSections := .Site.Params.mainSections | default (slice "post") }}
{{- $mainSections := .Site.Params.mainSections }}
{{- $paginator := .Paginate (where .Data.Pages "Section" "in" $mainSections) }}
{{- range $paginator.Pages }}
<div class="card{{ if and (ge ($.Param "columns") 1) (le ($.Param "columns") 3) }} card--{{ $.Param "columns" }}col{{ else }} card--2col{{ end }}">