Skip to content

Commit

Permalink
Revert "Alternative suggestion"
Browse files Browse the repository at this point in the history
This reverts commit 228ffd2.
  • Loading branch information
lxndrblz committed Sep 18, 2020
1 parent 7ffa9a6 commit 1306bb7
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 15 deletions.
10 changes: 0 additions & 10 deletions assets/css/style.css
Original file line number Diff line number Diff line change
Expand Up @@ -488,16 +488,6 @@ a:active {
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;
Expand Down
10 changes: 5 additions & 5 deletions layouts/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,6 @@
{{ 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>
Expand All @@ -31,6 +26,11 @@ <h3><a href="{{ .RelPermalink }}">{{ .Title }}</a>
</div>
</div>
</div>
{{ if isset .Params "thumbnail" }}
<div class="thumbnail">
<img src="{{ .Params.thumbnail | absURL }}" loading="lazy">
</div>
{{ end }}
</div>
{{ end }}
<div class="pagination">
Expand Down

0 comments on commit 1306bb7

Please sign in to comment.