From 5aeaec0fcc3c0145fbc2a4fd3d87f8201ea96c96 Mon Sep 17 00:00:00 2001 From: Martin Kagamino Lehoux Date: Sun, 14 Jun 2026 16:30:44 +0200 Subject: feat: Small quality of life --- .gitignore | 3 +++ .hugo_build.lock | 0 config/_default/hugo.toml | 2 +- layouts/404.html | 4 ++-- layouts/partials/head/meta.html | 1 + layouts/partials/header/avatar.html | 1 + layouts/partials/list/default.html | 2 +- layouts/shortcodes/img.html | 2 +- 8 files changed, 10 insertions(+), 5 deletions(-) delete mode 100644 .hugo_build.lock diff --git a/.gitignore b/.gitignore index 183a986..fba0d30 100644 --- a/.gitignore +++ b/.gitignore @@ -7,3 +7,6 @@ experimentationanalyticsevent .obsidian __pycache__ +.hugo_build.lock +.venv +resources diff --git a/.hugo_build.lock b/.hugo_build.lock deleted file mode 100644 index e69de29..0000000 diff --git a/config/_default/hugo.toml b/config/_default/hugo.toml index d04c42c..7ef33df 100644 --- a/config/_default/hugo.toml +++ b/config/_default/hugo.toml @@ -29,7 +29,7 @@ isPlainText = true notAlternative = true [outputs] -home = ["html", "rss", "wordstats"] +home = ["html", "rss", "wordstats", "sitemap"] section = ["html", "rss"] [author] 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 @@
-

{{ i18n "404_title" }}

+

Page Not Found

-

{{ i18n "404_text" }}

+

Sorry, this page doesn't exist. Go back home.

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 @@ /> + 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" /> 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 @@ 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" }}
- {{ . }} + {{ . }} {{ with $caption }}