diff --git a/content/blog/2016-04-24-ucoin-rename-duniter.md b/content/blog/2016-04-24-ucoin-rename-duniter.md index be0fdba74a8bcf3c50ce5a0be58041ba5e7a2e6d..d5b4b769084a7fd0efcebf950302165c4fcb9463 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 144c8a922676b4f653475979746908bc024e786e..569f8ddd28159c4e600e5846669100067347a7e3 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 %}