From 490b5bf9ed853cc5ef1ce443dd34bbe00c6c10e9 Mon Sep 17 00:00:00 2001 From: Hugo Trentesaux <hugo@trentesaux.fr> Date: Mon, 29 Nov 2021 10:10:54 +0100 Subject: [PATCH] fix resized image in template --- content/blog/2016-04-24-ucoin-rename-duniter.md | 2 +- templates/macros.html | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/content/blog/2016-04-24-ucoin-rename-duniter.md b/content/blog/2016-04-24-ucoin-rename-duniter.md index be0fdba..d5b4b76 100644 --- a/content/blog/2016-04-24-ucoin-rename-duniter.md +++ b/content/blog/2016-04-24-ucoin-rename-duniter.md @@ -4,7 +4,7 @@ date = 2016-04-24 title = "uCoin devient Duniter !" [extra] -thumbnail = "/PELICAN/images/duniter-logo.png" +thumbnail = "/img/duniter-logo.svg" [taxonomies] authors = [ "cgeek",] diff --git a/templates/macros.html b/templates/macros.html index 144c8a9..569f8dd 100644 --- a/templates/macros.html +++ b/templates/macros.html @@ -22,7 +22,8 @@ {# === resize static image === #} {# =========================== #} {% macro resize_static(path, width=160, height=160, op="fit_height") %} -{{ resize_image(path="../static" ~ path, width=width, height=height, op=op) }} +{% set resized = resize_image(path="../static" ~ path, width=width, height=height, op=op) %} +{{ resized.url }} {% endmacro resize_static %} -- GitLab