Oprava whitespace overflow v background-image
All checks were successful
continuous-integration/drone/push Build is passing
All checks were successful
continuous-integration/drone/push Build is passing
This commit is contained in:
parent
5cdc5cb846
commit
b2de34dc0c
@ -18,15 +18,15 @@
|
|||||||
{% endmacro print_recipe %}
|
{% endmacro print_recipe %}
|
||||||
|
|
||||||
{% macro recipe_preview_image(recipe) %}
|
{% macro recipe_preview_image(recipe) %}
|
||||||
{% set_global image = "../static/temp.jpg" %}
|
{%- set_global image = "../static/temp.jpg" %}
|
||||||
{% for asset in recipe.assets %}
|
{%- for asset in recipe.assets %}
|
||||||
{% if asset is matching("[img.](jpg|png)$") %}
|
{%- if asset is matching("[img.](jpg|png)$") %}
|
||||||
{% set_global image = asset %}
|
{%- set_global image = asset %}
|
||||||
{% break %}
|
{%- break %}
|
||||||
{% endif %}
|
{%- endif %}
|
||||||
{% endfor %}
|
{%- endfor %}
|
||||||
{% set image = resize_image(path=image, width=300, height=300, op="fill") %}
|
{%- set image = resize_image(path=image, width=300, height=300, op="fill") %}
|
||||||
{{ image.url }}
|
{{- image.url -}}
|
||||||
{% endmacro recipe_preview_image %}
|
{% endmacro recipe_preview_image %}
|
||||||
|
|
||||||
{% macro pagination() %}
|
{% macro pagination() %}
|
||||||
|
Loading…
Reference in New Issue
Block a user