first working banner

This commit is contained in:
Aron Petau 2025-05-05 01:06:49 +02:00
parent 2d3dfddc29
commit 0a8be90c90
432 changed files with 13477 additions and 1291 deletions

View file

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