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/_default/single.html')
-rw-r--r--layouts/_default/single.html7
1 files changed, 4 insertions, 3 deletions
diff --git a/layouts/_default/single.html b/layouts/_default/single.html
index 05fd080..06387c7 100644
--- a/layouts/_default/single.html
+++ b/layouts/_default/single.html
@@ -43,11 +43,12 @@
</div>
<!-- Post Featured Image -->
- {{with .Params.image}}
- <img class="featured-image img-fluid" src="{{ . | urlize | relURL }}" alt="thumbnail for this post">
+ {{$images := .Resources.ByType "image"}}
+ {{with $images.GetMatch "*cover*" }}
+ <img class="featured-image img-fluid" src="{{ .Permalink }}" alt="thumbnail for this post">
{{end}}
<!-- End Featured Image -->
-
+
<!-- Post Content -->
<div class="article-post">
{{ .Content}}