aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMartin Kagamino Lehoux <martin@lehoux.net>2026-04-10 08:22:20 +0200
committerMartin Kagamino Lehoux <martin@lehoux.net>2026-04-10 08:22:20 +0200
commit941dd72ce84576c1778e9ee46d52a765ddec35bc (patch)
treea49c4a84b261d699d7590b0e0f2244611157bec0
parent0d74daa5157a7040cfd997b90a4d54e374411fab (diff)
Fix header in post list
-rw-r--r--assets/css/main.css10
-rw-r--r--layouts/partials/list/default.html4
2 files changed, 9 insertions, 5 deletions
diff --git a/assets/css/main.css b/assets/css/main.css
index 36ec9fa..cbd7d77 100644
--- a/assets/css/main.css
+++ b/assets/css/main.css
@@ -106,7 +106,7 @@ p, hr, pre, dl, details {
margin-bottom: 1.25rem;
}
-article > h1 {
+article > h1, article > h2 {
margin-bottom: 0.25rem;
}
@@ -349,14 +349,18 @@ button {
color: var(--color-light);
}
-#content h1 > a {
+#content article > h2 {
+ line-height: 1.75rem;
+}
+
+#content h2 > a {
text-decoration: none;
font-size: 1.25rem;
font-weight: 700;
color: var(--color-heading);
}
-#content h1 > a:hover {
+#content h2 > a:hover {
text-decoration: underline;
color: var(--color-heading);
}
diff --git a/layouts/partials/list/default.html b/layouts/partials/list/default.html
index f1eef3d..799e7d7 100644
--- a/layouts/partials/list/default.html
+++ b/layouts/partials/list/default.html
@@ -1,7 +1,7 @@
<article class="flex flex-col gap-1">
- <h1>
+ <h2>
<a href="{{ .Permalink }}">{{ .Title }}</a>
- </h1>
+ </h2>
<span class="date">
<time datetime="{{ .PublishDate }}" title='{{ .PublishDate.Format "Mon, Jan 2, 2006, 3:04 PM MST" }}'>