mirror of https://github.com/lxndrblz/anatole.git

Alexander Bilz
18.59.2020 228ffd255c53be27fefae83b153d447a1690af7c
Alternative suggestion
2 files modified
20 ■■■■ changed files
assets/css/style.css 10 ●●●●● patch | view | raw | blame | history
layouts/index.html 10 ●●●● patch | view | raw | blame | history
assets/css/style.css
@@ -488,6 +488,16 @@
    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;
layouts/index.html
@@ -3,6 +3,11 @@
    {{ 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>
@@ -26,11 +31,6 @@
                    </div>
                </div>
            </div>
            {{ if isset .Params "thumbnail" }}
            <div class="thumbnail">
                <img src="{{ .Params.thumbnail | absURL }}" loading="lazy">
            </div>
            {{ end }}
        </div>
    {{ end }}
    <div class="pagination">