Fix banner loading and processing
This commit is contained in:
@ -7,7 +7,7 @@
|
||||
<article>
|
||||
{%- if page.extra.banner -%}
|
||||
<div id="banner-container">
|
||||
<img id="banner" class="full-bleed{% if page.extra.banner_pixels %} pixels{% endif %}" src="{{ get_url(path=page.extra.banner, lang=lang)}}" {% if config.markdown.lazy_async_image %}decoding="async" loading="lazy"{% endif %} />
|
||||
<img id="banner" class="full-bleed{% if page.extra.banner_pixels %} pixels{% endif %}" src="{{ current_url ~ page.extra.banner }}" {% if config.markdown.lazy_async_image %}decoding="async" loading="lazy"{% endif %} />
|
||||
</div>
|
||||
{%- endif -%}
|
||||
|
||||
|
@ -1,5 +1,5 @@
|
||||
{%- if page.extra.banner -%}
|
||||
{% set card = resize_image(path=page.extra.banner, width=1200, height=628, op="fill") %}
|
||||
{%- 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') }}
|
||||
|
Reference in New Issue
Block a user