Reduce website static content file size by a lot

This commit is contained in:
Keavon Chambers
2023-08-23 15:36:31 -07:00
parent 2d99d4bee1
commit 89b269cf55
12 changed files with 49 additions and 37 deletions

View File

@@ -19,7 +19,7 @@
<div class="details">
<h1 class="headline">{{ this.title }}</h2>
<span class="publication">By {{ this.extra.author }}. {{ this.date | date(format = "%B %d, %Y", timezone="America/Los_Angeles") }}.</span>
<img class="banner" src="{{ this.extra.banner | safe }}" />
<img class="banner" src="{{ this.extra.banner | safe }}" onerror="this.onerror = null; this.src = this.src.replace('.avif', '.png')" />
</div>
<hr />
<article>

View File

@@ -13,7 +13,7 @@
{% for page in section.pages %}
<section>
<div class="banner">
<a href="{{ page.path }}"><img src="{{ page.extra.banner | safe }}" /></a>
<a href="{{ page.path }}"><img src="{{ page.extra.banner | safe }}" onerror="this.onerror = null; this.src = this.src.replace('.avif', '.png')" /></a>
</div>
<div class="details">
<div class="headline">