customizable content width; added grid layout; article images fixed height and cropped in article preview; article list is now always a grid for a cleaner css

This commit is contained in:
Gabriele Musco 2021-04-12 23:49:04 +02:00
parent c3af040dc9
commit a103d30a57
No known key found for this signature in database
GPG key ID: 8539FD3454380B83
3 changed files with 37 additions and 15 deletions

View file

@ -5,7 +5,7 @@
{{ $postsList := where .Site.RegularPages "Section" "in" $postsDir }}
{{/* pagination */}}
<div class="postlist">
<div class="postlist {{ if .Site.Params.gridView }}gridView{{ end }}">
{{ range (.Paginate $postsList).Pages }}
<article class="card postlistitem {{ if .Site.Params.discreteCards }}discrete{{ end }}">
<div>