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

github.com/AmazingRise/hugo-theme-diary.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authoramazingrise <8315221+AmazingRise@users.noreply.github.com>2021-09-18 04:43:20 +0300
committeramazingrise <8315221+AmazingRise@users.noreply.github.com>2021-09-18 04:43:20 +0300
commit76c84d1934f49796d554b9ccb7651caa0bee8a7a (patch)
tree4f370c25c94d81692b5aa93f5438661beb9113f1
parentc0cee788d56f52744d13411094fb99557cf77ce6 (diff)
parent4a1b3df7d03398d58e44e37dd799f6ca7c356c3d (diff)
Merge branch 'testing'
-rw-r--r--layouts/index.html6
1 files changed, 4 insertions, 2 deletions
diff --git a/layouts/index.html b/layouts/index.html
index 5efb1d4..e25ed9d 100644
--- a/layouts/index.html
+++ b/layouts/index.html
@@ -23,9 +23,11 @@
<div class="post-item-image-wrapper">
<div class="post-item-image"
{{ if $image }}
- style="background-image: url('{{ $image.Permalink }}')"
+ {{ $thumbnail := $image.Resize "690x360" }}
+ style="background-image: url('{{ $thumbnail.Permalink }}')"
{{ else }}
- style="background-image: url('{{ $featured_image | absURL}}')"
+
+ style="background-image: url('{{ $featured_image | absURL}}')"
{{ end }}
></div>
</div>