From 7f3d906f2478ae32ade9e5692ac458905d22ec9f Mon Sep 17 00:00:00 2001 From: Jimmy Cai Date: Sun, 6 Sep 2020 19:51:16 +0200 Subject: [PATCH] feat(article list/default): better thumbnail --- layouts/partials/article-list/default.html | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/layouts/partials/article-list/default.html b/layouts/partials/article-list/default.html index e58ef18..25fcbc2 100644 --- a/layouts/partials/article-list/default.html +++ b/layouts/partials/article-list/default.html @@ -1,12 +1,14 @@
{{ if .Params.image }} {{- $image := partial "helper/image" . -}} - {{- $thumbnailNotDesktop := $image.Resize "x500 smart" -}} - + {{- $thumbnail := $image.Fill "800x250" -}} + {{- $thumbnailRetina := $image.Fill "1600x500" -}} +
- Featured image of post {{ .Title }}