Fix banner loading and processing

This commit is contained in:
daudix
2024-08-26 16:50:54 +03:00
parent 4392844fc6
commit 2f00256c0f
4 changed files with 4 additions and 8 deletions

View File

@ -1,5 +1,5 @@
{%- if page.extra.banner -%}
{% set card = resize_image(path=page.extra.banner, width=1200, height=628, op="fill") %}
{%- set card = resize_image(path=page.colocated_path ~ page.extra.banner, width=1200, height=628, op="fill") -%}
{{ card.url }}
{%- else -%}
{{ get_url(path='card.png') }}