aboutsummaryrefslogtreecommitdiff
path: root/layouts
diff options
context:
space:
mode:
authorMartin Kagamino Lehoux <martin@lehoux.net>2026-06-14 16:30:44 +0200
committerMartin Kagamino Lehoux <martin@lehoux.net>2026-06-14 16:30:44 +0200
commit5aeaec0fcc3c0145fbc2a4fd3d87f8201ea96c96 (patch)
tree17439194fcba27ef9c585ba71c2202406c581d52 /layouts
parentef5e6fd5ec71bb277ca97304ba4f9987aa4d680b (diff)
feat: Small quality of life
Diffstat (limited to 'layouts')
-rw-r--r--layouts/404.html4
-rw-r--r--layouts/partials/head/meta.html1
-rw-r--r--layouts/partials/header/avatar.html1
-rw-r--r--layouts/partials/list/default.html2
-rw-r--r--layouts/shortcodes/img.html2
5 files changed, 6 insertions, 4 deletions
diff --git a/layouts/404.html b/layouts/404.html
index 6bed926..021efa1 100644
--- a/layouts/404.html
+++ b/layouts/404.html
@@ -2,11 +2,11 @@
<article class="flex flex-col gap-3">
<header>
- <h2 class="title-small">{{ i18n "404_title" }}</h2>
+ <h2 class="title-small">Page Not Found</h2>
</header>
<section>
- <p>{{ i18n "404_text" }}</p>
+ <p>Sorry, this page doesn't exist. <a href="{{ "/" | absURL }}">Go back home</a>.</p>
</section>
</article>
diff --git a/layouts/partials/head/meta.html b/layouts/partials/head/meta.html
index 93f8594..b8b77c9 100644
--- a/layouts/partials/head/meta.html
+++ b/layouts/partials/head/meta.html
@@ -11,6 +11,7 @@
/>
<link rel="canonical" href="{{ .Permalink }}" />
<link rel="robots" href="/robot.txt" />
+<link rel="alternate" type="application/rss+xml" title="{{ .Site.Title }} - RSS Feed" href="{{ .Site.BaseURL }}/index.xml" />
<link rel="icon" type="image/x-icon" href="{{ $tiny.RelPermalink }}" />
diff --git a/layouts/partials/header/avatar.html b/layouts/partials/header/avatar.html
index e7bf084..9f580a3 100644
--- a/layouts/partials/header/avatar.html
+++ b/layouts/partials/header/avatar.html
@@ -8,6 +8,7 @@
width="{{ $avatar.Width }}"
height="{{ $avatar.Height }}"
alt="{{ .Site.Title }}"
+ loading="lazy"
/>
</a>
</div>
diff --git a/layouts/partials/list/default.html b/layouts/partials/list/default.html
index 799e7d7..5474596 100644
--- a/layouts/partials/list/default.html
+++ b/layouts/partials/list/default.html
@@ -5,7 +5,7 @@
<span class="date">
<time datetime="{{ .PublishDate }}" title='{{ .PublishDate.Format "Mon, Jan 2, 2006, 3:04 PM MST" }}'>
- {{ .PublishDate.Format "02/01/2006" }}
+ {{ .PublishDate.Format "02/01/2006" }} — {{ .ReadingTime }} min read
</time>
</span>
diff --git a/layouts/shortcodes/img.html b/layouts/shortcodes/img.html
index 45ce3da..9e50ce4 100644
--- a/layouts/shortcodes/img.html
+++ b/layouts/shortcodes/img.html
@@ -4,7 +4,7 @@
{{ $captionPosition := .Get "caption-position" }}
<figure class='mb-5'>
- <img src="{{ $img.RelPermalink }}" {{ with $alt }} alt="{{ . }}" {{ end }} width="{{ $img.Width }}" height="{{ $img.Height }}" />
+ <img src="{{ $img.RelPermalink }}" {{ with $alt }} alt="{{ . }}" {{ end }} width="{{ $img.Width }}" height="{{ $img.Height }}" loading="lazy" />
{{ with $caption }}
<figcaption