mirror of
https://github.com/Vimux/Binario.git
synced 2024-11-24 15:08:35 +00:00
cardsPerRow -> columns
This commit is contained in:
parent
7f3f0ece7c
commit
32c4b92533
2 changed files with 2 additions and 2 deletions
|
@ -8,7 +8,7 @@
|
||||||
{{- end }}
|
{{- end }}
|
||||||
<div class="cards">
|
<div class="cards">
|
||||||
{{ range .Paginator.Pages }}
|
{{ range .Paginator.Pages }}
|
||||||
<div class="card{{ if and (ge ($.Param "cardsPerRow") 1) (le ($.Param "cardsPerRow") 3) }} card--{{ $.Param "cardsPerRow" }}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 }}">
|
||||||
{{ .Render "summary" }}
|
{{ .Render "summary" }}
|
||||||
</div>
|
</div>
|
||||||
{{ end }}
|
{{ end }}
|
||||||
|
|
|
@ -4,7 +4,7 @@
|
||||||
{{ $mainSections := .Site.Params.mainSections | default (slice "post") }}
|
{{ $mainSections := .Site.Params.mainSections | default (slice "post") }}
|
||||||
{{ $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 "cardsPerRow") 1) (le ($.Param "cardsPerRow") 3) }} card--{{ $.Param "cardsPerRow" }}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 }}">
|
||||||
{{ .Render "summary" }}
|
{{ .Render "summary" }}
|
||||||
</div>
|
</div>
|
||||||
{{ end }}
|
{{ end }}
|
||||||
|
|
Loading…
Reference in a new issue