Add site title banner
This commit is contained in:
parent
14f097c70c
commit
df3366a3db
3 changed files with 27 additions and 2 deletions
|
@ -19,6 +19,21 @@ html
|
|||
background-attachment: fixed
|
||||
body
|
||||
margin: 0
|
||||
header
|
||||
& > *
|
||||
margin: 0
|
||||
.site-header
|
||||
display: flex
|
||||
gap: 1em
|
||||
align-items: center
|
||||
color: inherit
|
||||
text-decoration: none
|
||||
h1
|
||||
margin-bottom: -0.375em
|
||||
img
|
||||
height: 5em
|
||||
border-radius: 0.5em
|
||||
border: 2px solid $primary
|
||||
h1, h2, h3, h4, h5, h6
|
||||
font-family: 'Roboto Slab', sans-serif
|
||||
&:first-child
|
||||
|
|
|
@ -2,8 +2,19 @@
|
|||
<html>
|
||||
{{- partial "head.html" . -}}
|
||||
<body>
|
||||
|
||||
<div class="content">
|
||||
<a href="/" class="site-header">
|
||||
{{ with .Site.Params.Avatar }}
|
||||
<img src="{{ . }}">
|
||||
{{ end }}
|
||||
<header>
|
||||
<h1>{{ .Site.Title }}</h1>
|
||||
{{ with .Site.Params.Tagline }}
|
||||
<h3>{{ . }}</h3>
|
||||
{{ end }}
|
||||
</header>
|
||||
</a>
|
||||
<br>
|
||||
{{ if .Site.Params.Stork }}
|
||||
<div class="stork-search">
|
||||
<label>
|
||||
|
|
|
@ -2,7 +2,6 @@
|
|||
{{ $pagination := .Paginate (where .Site.RegularPages "Params.hidden" "!=" true) }}
|
||||
{{ partial "pagination.html" $pagination }}
|
||||
{{ if eq $pagination.PageNumber 1 }}
|
||||
<h1>{{ .Title }}</h1>
|
||||
{{ partial "content.html" .Content }}
|
||||
{{ end }}
|
||||
{{ $scratch := newScratch }}
|
||||
|
|
Loading…
Add table
Reference in a new issue