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

github.com/uPagge/uBlogger.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authoruPagge <git@upagge.ru>2021-02-17 20:01:52 +0300
committeruPagge <git@upagge.ru>2021-02-17 20:01:52 +0300
commit79a24f5c759568b552eb65ee71d4142d88fc3df1 (patch)
tree192813edb44a8a8bb31972633f8debcb1064c8d0 /layouts/_default/summary.html
parent1374f9fe8cd8842e981b8deeed619bfdbe067f4d (diff)
render image preview
Diffstat (limited to 'layouts/_default/summary.html')
-rw-r--r--layouts/_default/summary.html4
1 files changed, 2 insertions, 2 deletions
diff --git a/layouts/_default/summary.html b/layouts/_default/summary.html
index d3db9f3..62a229d 100644
--- a/layouts/_default/summary.html
+++ b/layouts/_default/summary.html
@@ -7,10 +7,10 @@
{{- if not $params.summaryStyle.hiddenImage -}}
{{- $image := $params.featuredimagepreview | default $params.featuredimage -}}
{{- with .Resources.GetMatch "featured-image" -}}
- {{- $image = .RelPermalink -}}
+ {{- $image = (.Fill "796x238 Center q90").RelPermalink -}}
{{- end -}}
{{- with .Resources.GetMatch "featured-image-preview" -}}
- {{- $image = .RelPermalink -}}
+ {{- $image = (.Fill "796x238 Center q90").RelPermalink -}}
{{- end -}}
{{- with $image -}}
<div class="featured-image-preview">