Generate card from banner if present. Use page/section description instead of config if available (fixes #51 and #50)
This commit is contained in:
6
templates/partials/card.html
Normal file
6
templates/partials/card.html
Normal file
@ -0,0 +1,6 @@
|
||||
{%- if page.extra.banner -%}
|
||||
{% set card = resize_image(path=page.extra.banner, width=1200, height=628, op="fill") %}
|
||||
{{ card.url }}
|
||||
{%- else -%}
|
||||
{{ get_url(path='card.png') }}
|
||||
{%- endif -%}
|
Reference in New Issue
Block a user