forked from Bunteshaus/bunteshaus.de
small fixes
This commit is contained in:
parent
4443f67dfe
commit
a45ed9524e
|
@ -4,6 +4,11 @@
|
|||
.b_index {
|
||||
height: calc(100vw / 3.5 );
|
||||
}
|
||||
|
||||
.non_banner_height {
|
||||
height: calc(50vw / 3.5 );
|
||||
}
|
||||
|
||||
.banner {
|
||||
width: 98vw;
|
||||
//box-shadow: inset 0px -11px 8px -10px #444;
|
||||
|
|
|
@ -19,6 +19,12 @@
|
|||
background-position: top;
|
||||
background-repeat: no-repeat;
|
||||
}
|
||||
.articlemeta {
|
||||
margin-bottom: 1em;
|
||||
&:first-child {
|
||||
font-weight: bold;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@media (min-width: 640px) {
|
||||
|
|
|
@ -5,6 +5,9 @@
|
|||
{{ if .partial_before }}
|
||||
{{ partial .partial_before (dict "context" .context "pic" .pic) }}
|
||||
{{ end }}
|
||||
{{ if in .context.File "imprint" }}
|
||||
{{ if i18n "executive" }}{{ i18n "executive" }}{{ else }}{{ "Executive" }}{{ end }}: {{ .context.Site.Params.imprintdata.executive }}
|
||||
{{ end }}
|
||||
{{ .content }}
|
||||
</div>
|
||||
</div>
|
||||
|
|
|
@ -18,6 +18,7 @@
|
|||
{{ if $title }}<h2>{{ $title }}</h2>{{ end }}
|
||||
{{ range $p }}
|
||||
<div class="list_item">
|
||||
{{ $metas := dict "when" .Params.when "price" .Params.price }}
|
||||
{{ $banner := slice }}
|
||||
{{ $image := slice }}
|
||||
{{ $images := slice }}
|
||||
|
@ -33,6 +34,9 @@
|
|||
<a href="{{ .Permalink }}">
|
||||
<section>
|
||||
{{ if $title }}<h3>{{ else }}<h2>{{ end }}
|
||||
{{ if .Params.events }}
|
||||
{{ index .Params.events 0 }}:
|
||||
{{ end }}
|
||||
{{ .Title }}
|
||||
{{ if $title }}</h3>{{ else }}</h2>{{ end }}
|
||||
{{ with .Resources.GetMatch $banner }}
|
||||
|
@ -67,6 +71,7 @@
|
|||
<img src="{{ .Permalink }}" />
|
||||
{{ end }}
|
||||
{{ end }}
|
||||
{{ partial "snippets/article_metadata" $metas }}
|
||||
<div class="text">
|
||||
{{ if .Description }}
|
||||
<p>{{ .Description }}</p>
|
||||
|
|
|
@ -33,7 +33,7 @@
|
|||
<div style="background-image: url({{- $img.Permalink -}})" class="banner {{ $css }}">
|
||||
{{ if not .IsHome }}<h1 class="{{ $title_class }}">{{ $title }}</h1> {{ end }}
|
||||
{{ if eq hugo.Environment "development" }}
|
||||
<div>
|
||||
<div style="color: black;">
|
||||
{{ $w := (resources.GetMatch $banner).Width }}
|
||||
{{ $h := (resources.GetMatch $banner).Height }}
|
||||
{{ if lt (int $w) $good_w }}
|
||||
|
@ -62,7 +62,7 @@
|
|||
<div style="background-image:url({{- $img.Permalink -}})" class="banner {{ $css }}">
|
||||
{{ if not .IsHome }}<h1 class="{{ $title_class }}">{{ $title }}</h1> {{ end }}
|
||||
{{ if eq hugo.Environment "development" }}
|
||||
<div>
|
||||
<div style="color: black;">
|
||||
{{ $w := (index (.Resources.Match "banner*") 0).Width }}
|
||||
{{ $h := (index (.Resources.Match "banner*") 0).Height }}
|
||||
{{ if lt (int $w) $good_w }}
|
||||
|
@ -91,7 +91,7 @@
|
|||
<div style="background-image: url({{- $img.Permalink -}})" class="banner {{ $css }}">
|
||||
{{ if not .IsHome }}<h1 class="{{ $title_class }}">{{ $title }}</h1> {{ end }}
|
||||
{{ if eq hugo.Environment "development" }}
|
||||
<div>
|
||||
<div style="color: black;">
|
||||
{{ $w := (index (.Resources.ByType "image") 0).Width }}
|
||||
{{ $h := (index (.Resources.ByType "image") 0).Height }}
|
||||
{{ if lt (int $w) $good_w }}
|
||||
|
@ -116,7 +116,7 @@
|
|||
{{ end }}
|
||||
</div>
|
||||
{{ else }}
|
||||
<div class="banner {{ $css }}">
|
||||
<div class="banner non_banner_height">
|
||||
{{ if not .IsHome }}<h1 class="{{ $title_class }}">{{ $title }}</h1> {{ end }}
|
||||
{{ if eq hugo.Environment "development" }}
|
||||
{{ $str1 := printf "assets/images/banner/%s* missing.." $what }}
|
||||
|
|
Loading…
Reference in New Issue
Block a user