small fixes

This commit is contained in:
teldra 2022-06-12 21:33:34 +02:00
parent c841f43b55
commit 428d924db7
2 changed files with 6 additions and 7 deletions

View File

@ -5,10 +5,10 @@ header {
div {
display: flex;
height: 5rem;
align-items: center;
margin-top: .5em;
align-items: flex-start;
justify-content: space-between;
svg {
margin-top: 1rem;
margin-left: 0.2vw;
width: auto;
height: 4em;
@ -36,7 +36,6 @@ header {
width: 86%;
div {
svg {
margin-top: 5rem;
width: auto;
height: 7em;
}

View File

@ -27,7 +27,7 @@
{{ end }}
{{ if and (resources.GetMatch $banner) (ne .Params.banner false) }}
<div style="background-image: url({{- $img.Permalink -}})" class="banner">
<h1 class="{{ $title_class }}">{{ $title }}</h1>
{{ if not .IsHome }}<h1 class="{{ $title_class }}">{{ $title }}</h1> {{ end }}
{{ if eq hugo.Environment "development" }}
<div>
{{ $w := (resources.GetMatch $banner).Width }}
@ -56,7 +56,7 @@
{{ else if and (.Resources.Match "banner*") (ne .Params.banner false) }}
{{ $img = (.Resources.GetMatch "banner*").Fill $fill }}
<div style="background-image:url({{- $img.Permalink -}})" class="banner">
<h1 class="{{ $title_class }}">{{ $title }}</h1>
{{ if not .IsHome }}<h1 class="{{ $title_class }}">{{ $title }}</h1> {{ end }}
{{ if eq hugo.Environment "development" }}
<div>
{{ $w := (index (.Resources.Match "banner*") 0).Width }}
@ -85,7 +85,7 @@
{{ else if and (.Resources.ByType "image") (ne .Params.banner false) }}
{{ $img = (index (.Resources.ByType "image") 0).Fill $fill }}
<div style="background-image: url({{- $img.Permalink -}})" class="banner">
<h1 class="{{ $title_class }}">{{ $title }}</h1>
{{ if not .IsHome }}<h1 class="{{ $title_class }}">{{ $title }}</h1> {{ end }}
{{ if eq hugo.Environment "development" }}
<div>
{{ $w := (index (.Resources.ByType "image") 0).Width }}
@ -113,7 +113,7 @@
</div>
{{ else }}
<div class="banner">
<h1 class="{{ $title_class }}">{{ $title }}</h1>
{{ if not .IsHome }}<h1 class="{{ $title_class }}">{{ $title }}</h1> {{ end }}
{{ if eq hugo.Environment "development" }}
<p>
assets/images/banner/{{ $what -}}.* missing..<br>