diff options
Diffstat (limited to 'layouts/_default/single.html')
-rw-r--r-- | layouts/_default/single.html | 7 |
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}} |