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;
|
||||
}
|
||||
|
||||
.title-post-date {
|
||||
font-size: .7em;
|
||||
margin-left: 2em;
|
||||
.title-post-date { margin-left: 0em;
|
||||
display: block;
|
||||
font-size: 0.5em;
|
||||
}
|
||||
|
||||
/* Zen v7 paints body with --color-body-bg and .page with --color-page-bg. */
|
||||
|
|
@ -189,10 +189,6 @@ nav a,
|
|||
h2 a {
|
||||
margin-right: 2em;
|
||||
}
|
||||
|
||||
.title-post-date {
|
||||
margin-left: 0em;
|
||||
}
|
||||
/* Visible when focused with the keyboard; the visually-hidden class hides it otherwise. */
|
||||
.skip-link:focus {
|
||||
position: absolute;
|
||||
|
|
|
|||
|
|
@ -2,6 +2,9 @@
|
|||
|
||||
{{ define "main" -}}
|
||||
<main class="main layout__main">
|
||||
<header>
|
||||
<h1 class="title">{{ .Title }}</h1>
|
||||
</header>
|
||||
{{ if .Param "intro" }}
|
||||
<div class="intro-text">{{ .Param "intro" }}</div>
|
||||
{{ end }}
|
||||
|
|
|
|||
Loading…
Reference in a new issue