Add page title to home page with same styling as News/FAQ pages

- Added <h1 class="title"> with page title to home page
- Uses same structure as list pages (News, FAQ, Tours)
- Title inherits styling from existing .title class (--fs-xxl)
This commit is contained in:
Vincent Mahnke 2026-11-07 19:17:45 +01:00
commit 55d59be2e2
Signed by: ViMaSter
GPG key ID: 6D787326BA7D6469
2 changed files with 6 additions and 7 deletions

View file

@ -143,9 +143,9 @@ th, td {
font-variant-numeric: tabular-nums; font-variant-numeric: tabular-nums;
} }
.title-post-date { .title-post-date { margin-left: 0em;
font-size: .7em; display: block;
margin-left: 2em; font-size: 0.5em;
} }
/* Zen v7 paints body with --color-body-bg and .page with --color-page-bg. */ /* Zen v7 paints body with --color-body-bg and .page with --color-page-bg. */
@ -189,10 +189,6 @@ nav a,
h2 a { h2 a {
margin-right: 2em; margin-right: 2em;
} }
.title-post-date {
margin-left: 0em;
}
/* Visible when focused with the keyboard; the visually-hidden class hides it otherwise. */ /* Visible when focused with the keyboard; the visually-hidden class hides it otherwise. */
.skip-link:focus { .skip-link:focus {
position: absolute; position: absolute;

View file

@ -2,6 +2,9 @@
{{ define "main" -}} {{ define "main" -}}
<main class="main layout__main"> <main class="main layout__main">
<header>
<h1 class="title">{{ .Title }}</h1>
</header>
{{ if .Param "intro" }} {{ if .Param "intro" }}
<div class="intro-text">{{ .Param "intro" }}</div> <div class="intro-text">{{ .Param "intro" }}</div>
{{ end }} {{ end }}