Add site title banner

main
Elnu 2 years ago
parent 14f097c70c
commit df3366a3db

@ -19,6 +19,21 @@ html
background-attachment: fixed background-attachment: fixed
body body
margin: 0 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 h1, h2, h3, h4, h5, h6
font-family: 'Roboto Slab', sans-serif font-family: 'Roboto Slab', sans-serif
&:first-child &:first-child

@ -2,8 +2,19 @@
<html> <html>
{{- partial "head.html" . -}} {{- partial "head.html" . -}}
<body> <body>
<div class="content"> <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 }} {{ if .Site.Params.Stork }}
<div class="stork-search"> <div class="stork-search">
<label> <label>

@ -2,7 +2,6 @@
{{ $pagination := .Paginate (where .Site.RegularPages "Params.hidden" "!=" true) }} {{ $pagination := .Paginate (where .Site.RegularPages "Params.hidden" "!=" true) }}
{{ partial "pagination.html" $pagination }} {{ partial "pagination.html" $pagination }}
{{ if eq $pagination.PageNumber 1 }} {{ if eq $pagination.PageNumber 1 }}
<h1>{{ .Title }}</h1>
{{ partial "content.html" .Content }} {{ partial "content.html" .Content }}
{{ end }} {{ end }}
{{ $scratch := newScratch }} {{ $scratch := newScratch }}

Loading…
Cancel
Save