Reduce website loading times and related code cleanup

This commit is contained in:
Keavon Chambers
2025-01-08 18:29:54 -08:00
parent 93a60daa24
commit 68e6bec9b5
22 changed files with 112 additions and 56 deletions

View File

@@ -3,7 +3,7 @@
{% set latest = articles.pages | slice(end = count) %}
{% for article in latest %}
<div class="block">
<a class="banner" href="{{ article.permalink | safe }}"><img src="{{ article.extra.banner | safe }}" onerror="this.onerror = null; this.src = this.src.replace('.avif', '.png')" alt="Article cover image" /></a>
<a class="banner" href="{{ article.permalink | safe }}"><img loading="lazy" src="{{ article.extra.banner | safe }}" onerror="this.onerror = null; this.src = this.src.replace('.avif', '.png')" alt="Article cover image" /></a>
<h2 class="headline"><a href="{{ article.permalink | safe }}">{{ article.title }}</a></h2>
<div class="summary">
<p>{{ article.summary | striptags | safe }}</p>