init
This commit is contained in:
commit
d013ece0f3
363 changed files with 20823 additions and 0 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