small fixes
This commit is contained in:
parent
c841f43b55
commit
428d924db7
|
@ -5,10 +5,10 @@ header {
|
||||||
div {
|
div {
|
||||||
display: flex;
|
display: flex;
|
||||||
height: 5rem;
|
height: 5rem;
|
||||||
align-items: center;
|
margin-top: .5em;
|
||||||
|
align-items: flex-start;
|
||||||
justify-content: space-between;
|
justify-content: space-between;
|
||||||
svg {
|
svg {
|
||||||
margin-top: 1rem;
|
|
||||||
margin-left: 0.2vw;
|
margin-left: 0.2vw;
|
||||||
width: auto;
|
width: auto;
|
||||||
height: 4em;
|
height: 4em;
|
||||||
|
@ -36,7 +36,6 @@ header {
|
||||||
width: 86%;
|
width: 86%;
|
||||||
div {
|
div {
|
||||||
svg {
|
svg {
|
||||||
margin-top: 5rem;
|
|
||||||
width: auto;
|
width: auto;
|
||||||
height: 7em;
|
height: 7em;
|
||||||
}
|
}
|
||||||
|
|
|
@ -27,7 +27,7 @@
|
||||||
{{ end }}
|
{{ end }}
|
||||||
{{ if and (resources.GetMatch $banner) (ne .Params.banner false) }}
|
{{ if and (resources.GetMatch $banner) (ne .Params.banner false) }}
|
||||||
<div style="background-image: url({{- $img.Permalink -}})" class="banner">
|
<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" }}
|
{{ if eq hugo.Environment "development" }}
|
||||||
<div>
|
<div>
|
||||||
{{ $w := (resources.GetMatch $banner).Width }}
|
{{ $w := (resources.GetMatch $banner).Width }}
|
||||||
|
@ -56,7 +56,7 @@
|
||||||
{{ else if and (.Resources.Match "banner*") (ne .Params.banner false) }}
|
{{ else if and (.Resources.Match "banner*") (ne .Params.banner false) }}
|
||||||
{{ $img = (.Resources.GetMatch "banner*").Fill $fill }}
|
{{ $img = (.Resources.GetMatch "banner*").Fill $fill }}
|
||||||
<div style="background-image:url({{- $img.Permalink -}})" class="banner">
|
<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" }}
|
{{ if eq hugo.Environment "development" }}
|
||||||
<div>
|
<div>
|
||||||
{{ $w := (index (.Resources.Match "banner*") 0).Width }}
|
{{ $w := (index (.Resources.Match "banner*") 0).Width }}
|
||||||
|
@ -85,7 +85,7 @@
|
||||||
{{ else if and (.Resources.ByType "image") (ne .Params.banner false) }}
|
{{ else if and (.Resources.ByType "image") (ne .Params.banner false) }}
|
||||||
{{ $img = (index (.Resources.ByType "image") 0).Fill $fill }}
|
{{ $img = (index (.Resources.ByType "image") 0).Fill $fill }}
|
||||||
<div style="background-image: url({{- $img.Permalink -}})" class="banner">
|
<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" }}
|
{{ if eq hugo.Environment "development" }}
|
||||||
<div>
|
<div>
|
||||||
{{ $w := (index (.Resources.ByType "image") 0).Width }}
|
{{ $w := (index (.Resources.ByType "image") 0).Width }}
|
||||||
|
@ -113,7 +113,7 @@
|
||||||
</div>
|
</div>
|
||||||
{{ else }}
|
{{ else }}
|
||||||
<div class="banner">
|
<div class="banner">
|
||||||
<h1 class="{{ $title_class }}">{{ $title }}</h1>
|
{{ if not .IsHome }}<h1 class="{{ $title_class }}">{{ $title }}</h1> {{ end }}
|
||||||
{{ if eq hugo.Environment "development" }}
|
{{ if eq hugo.Environment "development" }}
|
||||||
<p>
|
<p>
|
||||||
assets/images/banner/{{ $what -}}.* missing..<br>
|
assets/images/banner/{{ $what -}}.* missing..<br>
|
||||||
|
|
Loading…
Reference in New Issue
Block a user