Revert "Alternative suggestion"
This reverts commit 228ffd255c53be27fefae83b153d447a1690af7c.
| | |
| | | max-height: 100%; |
| | | } |
| | | |
| | | .post-thumbnail { |
| | | width: 100%; |
| | | padding-bottom: 1em; |
| | | height: auto; |
| | | } |
| | | |
| | | .post-thumbnail img { |
| | | width: 100%; |
| | | } |
| | | |
| | | .pagination { |
| | | margin: 30px; |
| | | padding: 0px 0 56px 0; |
| | |
| | | {{ range $paginator.Pages }} |
| | | <div class="post animated fadeInDown preview"> |
| | | <div class="post-text"> |
| | | {{ if isset .Params "thumbnail" }} |
| | | <div class="post-thumbnail"> |
| | | <img src="{{ .Params.thumbnail | absURL }}" loading="lazy"> |
| | | </div> |
| | | {{ end }} |
| | | <div class="post-title"> |
| | | <h3><a href="{{ .RelPermalink }}">{{ .Title }}</a> |
| | | </h3> |
| | |
| | | </div> |
| | | </div> |
| | | </div> |
| | | {{ if isset .Params "thumbnail" }} |
| | | <div class="thumbnail"> |
| | | <img src="{{ .Params.thumbnail | absURL }}" loading="lazy"> |
| | | </div> |
| | | {{ end }} |
| | | </div> |
| | | {{ end }} |
| | | <div class="pagination"> |