aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--.gitignore3
-rw-r--r--.hugo_build.lock0
-rw-r--r--config/_default/hugo.toml2
-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
8 files changed, 10 insertions, 5 deletions
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
--- a/.hugo_build.lock
+++ /dev/null
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 @@
<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