Skip to content
Snippets Groups Projects
Commit 490b5bf9 authored by Hugo Trentesaux's avatar Hugo Trentesaux
Browse files

fix resized image in template

parent 15f279c0
No related branches found
No related tags found
No related merge requests found
Pipeline #14207 passed
...@@ -4,7 +4,7 @@ date = 2016-04-24 ...@@ -4,7 +4,7 @@ date = 2016-04-24
title = "uCoin devient Duniter !" title = "uCoin devient Duniter !"
[extra] [extra]
thumbnail = "/PELICAN/images/duniter-logo.png" thumbnail = "/img/duniter-logo.svg"
[taxonomies] [taxonomies]
authors = [ "cgeek",] authors = [ "cgeek",]
......
...@@ -22,7 +22,8 @@ ...@@ -22,7 +22,8 @@
{# === resize static image === #} {# === resize static image === #}
{# =========================== #} {# =========================== #}
{% macro resize_static(path, width=160, height=160, op="fit_height") %} {% 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 %} {% endmacro resize_static %}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment