{% macro render_logo() -%}
{% endmacro render_logo -%} {%- macro getCardPicture(assets)%} {%- for asset in assets -%} {%- if asset is matching("[.](jpg|png)$") -%} {%- set image = resize_image(path=asset, width=600, height=314, op="fill", format="jpg") %} {{- image.url }} {%- endif %} {%- break %} {%- endfor %} {%- endmacro getCardPicture -%} {% macro getPictures(assets,num_iterate=1,width=0, height=0, withimagelink=false,link="/",alt="picture") %} {%- if width == 0 %} {%- set width=config.extra.default.width %} {%- endif %} {%- if height == 0 %} {%- set height=config.extra.default.height %} {%- endif %} {%- set i=0 %} {%- for asset in assets -%} {%- if asset is matching("[.](jpg|png)$") -%} {%- set image = resize_image(path=asset, width=width, height=height) %}