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:
parent
8996266a61
commit
55d59be2e2
2 changed files with 6 additions and 7 deletions
|
|
@ -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;
|
||||||
|
|
|
||||||
|
|
@ -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 }}
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue