mirror of
https://github.com/welpo/tabi.git
synced 2026-04-26 09:57:20 +02:00
Remove metadata check to support avif and reduce CLS
This commit is contained in:
parent
7e0f022c92
commit
b5d84f5435
3 changed files with 3 additions and 7 deletions
|
|
@ -4,11 +4,9 @@
|
|||
{%- else -%}
|
||||
{%- set colocated_path = page.colocated_path | default(value="") -%}
|
||||
{%- set relative_path = colocated_path ~ src -%}
|
||||
{%- set meta = get_image_metadata(path=relative_path, allow_missing=true) -%}
|
||||
|
||||
{#- Fallback to absolute path if relative path doesn't work -#}
|
||||
{%- if not meta -%}
|
||||
{%- set meta = get_image_metadata(path=src, allow_missing=true) -%}
|
||||
{%- set image_url = get_url(path=src) -%}
|
||||
{%- else -%}
|
||||
{%- set image_url = get_url(path=relative_path) -%}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue