Allow setting card per page/section
This commit is contained in:
@ -1,6 +1,10 @@
|
||||
{%- if page.extra.banner -%}
|
||||
{%- set card = resize_image(path=page.colocated_path ~ page.extra.banner, width=1200, height=628, op="fill") -%}
|
||||
{{ card.url }}
|
||||
{%- 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 -%}
|
||||
{%- 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') }}
|
||||
{{ get_url(path='card.png') }}
|
||||
{%- endif -%}
|
||||
|
Reference in New Issue
Block a user