Blurhash-type of thing for articles with a banner
This commit is contained in:
@ -72,6 +72,11 @@
|
||||
</small>
|
||||
</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>
|
||||
{%- endif -%}
|
||||
|
||||
</article>
|
||||
{%- endfor %}
|
||||
</div>
|
||||
|
Reference in New Issue
Block a user