That's no blurhash, that's blurnail!

This commit is contained in:
daudix
2024-09-17 22:12:32 +03:00
parent 6b2b42c471
commit 0e24fcd190
5 changed files with 20 additions and 8 deletions

View File

@ -73,8 +73,8 @@
</div>
{%- endif -%}
{%- if page.extra.banner -%}
{%- set blurhash = resize_image(path=page.colocated_path ~ page.extra.banner, width=16, height=8, op="fill", format="webp") -%}
<div class="blurhash" style="--blurhash: url('{{ blurhash.url }}')"></div>
{%- set blurnail = resize_image(path=page.colocated_path ~ page.extra.banner, width=16, height=8, op="fill", format="webp") -%}
<div class="blurnail" style="--blurnail: url('{{ blurnail.url }}')"></div>
{%- endif -%}
</article>