first working banner
This commit is contained in:
parent
2d3dfddc29
commit
0a8be90c90
432 changed files with 13477 additions and 1291 deletions
17
templates/partials/card.html
Normal file
17
templates/partials/card.html
Normal 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 -%}
|
Loading…
Add table
Add a link
Reference in a new issue