Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/lgaida/mediumish-gohugo-theme.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'layouts/partials/list-partials/postbox.html')
-rw-r--r--layouts/partials/list-partials/postbox.html5
1 files changed, 3 insertions, 2 deletions
diff --git a/layouts/partials/list-partials/postbox.html b/layouts/partials/list-partials/postbox.html
index 5aafddd..02fc5c3 100644
--- a/layouts/partials/list-partials/postbox.html
+++ b/layouts/partials/list-partials/postbox.html
@@ -3,8 +3,9 @@
<div class="card h-100">
<div class="maxthumb">
<a href="{{ .URL }}">
- {{with .Params.image}}
- <img class="img-fluid" src="{{ . | urlize | relURL }}" alt="A thumbnail image">
+ {{$images := .Resources.ByType "image"}}
+ {{with $images.GetMatch "*cover*" }}
+ <img class="img-fluid" src="{{ .Permalink }}" alt="A thumbnail image">
{{end}}
</a>
</div>