forked from Bunteshaus/bunteshaus.de
small fixes
This commit is contained in:
parent
c48df93d4c
commit
5f2c49b75b
|
@ -31,18 +31,7 @@ $mq-retina: "(-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi)";
|
||||||
display: flex;
|
display: flex;
|
||||||
flex-direction: column;
|
flex-direction: column;
|
||||||
justify-content: flex-end;
|
justify-content: flex-end;
|
||||||
.title_index {
|
.title {
|
||||||
word-break: break-all;
|
|
||||||
color: var(--text-main);
|
|
||||||
background: var(--background-body-opaq);
|
|
||||||
text-align: center;
|
|
||||||
margin-bottom: 0;
|
|
||||||
text-shadow: 0px 4px 3px rgba(0,0,0,0.4),
|
|
||||||
0px 8px 13px rgba(0,0,0,0.1),
|
|
||||||
0px 18px 23px rgba(0,0,0,0.1);
|
|
||||||
|
|
||||||
}
|
|
||||||
.title, {
|
|
||||||
background: var(--background-body-opaq);
|
background: var(--background-body-opaq);
|
||||||
word-break: break-all;
|
word-break: break-all;
|
||||||
color: var(--text-main);
|
color: var(--text-main);
|
||||||
|
@ -55,7 +44,7 @@ $mq-retina: "(-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi)";
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
.altbg {
|
.altbg {
|
||||||
max-height: 5em;
|
max-height: 6em;
|
||||||
}
|
}
|
||||||
|
|
||||||
@media #{$mq-tiny} {
|
@media #{$mq-tiny} {
|
||||||
|
|
|
@ -47,7 +47,6 @@
|
||||||
{{ end }}
|
{{ end }}
|
||||||
|
|
||||||
{{ $content := .Content }}
|
{{ $content := .Content }}
|
||||||
|
|
||||||
{{ if or .Content (.Resources.ByType "image")}}
|
{{ if or .Content (.Resources.ByType "image")}}
|
||||||
<div class="article_content">
|
<div class="article_content">
|
||||||
{{- if .Content -}}
|
{{- if .Content -}}
|
||||||
|
@ -109,48 +108,46 @@
|
||||||
{{ end }}
|
{{ end }}
|
||||||
|
|
||||||
{{ define "inner_footer" }}
|
{{ define "inner_footer" }}
|
||||||
{{ if and (eq .Kind "page") (or (eq .Section "news") (eq .Section "events") (eq .Section "about")) }}
|
<div class="article_footer">
|
||||||
<div class="article_footer">
|
{{ with .Params.foundations }}
|
||||||
{{ with .Params.foundations }}
|
<div class="bold">Träger der Veranstaltung:</div>
|
||||||
<div class="bold">Träger der Veranstaltung:</div>
|
<div class="foundations_items">
|
||||||
<div class="foundations_items">
|
{{ range . }}
|
||||||
{{ range . }}
|
{{ $l := . }}
|
||||||
{{ $l := . }}
|
{{ $url := "" }}
|
||||||
{{ $url := "" }}
|
{{ if isset site.Params.foundations $l }}
|
||||||
{{ if isset site.Params.foundations $l }}
|
{{ $url = index site.Params.foundations $l }}
|
||||||
{{ $url = index site.Params.foundations $l }}
|
{{ end }}
|
||||||
{{ end }}
|
|
||||||
|
|
||||||
|
|
||||||
{{- $res_im := resources.GetMatch (printf "/images/foundations/%s*" $l ) -}}
|
{{- $res_im := resources.GetMatch (printf "/images/foundations/%s*" $l ) -}}
|
||||||
{{ if $res_im }}
|
{{ if $res_im }}
|
||||||
|
<div class="foundations_item">
|
||||||
|
{{ if $url }}<a href="{{ $url | safeHTML }}">{{ end }}<img src="{{- $res_im.Permalink -}}" class="borderrad4px article_footer_item1" /> {{ if $url }}</a>{{ end }}
|
||||||
|
</div>
|
||||||
|
{{ else }}
|
||||||
|
{{ if eq hugo.Environment "development" }}
|
||||||
<div class="foundations_item">
|
<div class="foundations_item">
|
||||||
{{ if $url }}<a href="{{ $url | safeHTML }}">{{ end }}<img src="{{- $res_im.Permalink -}}" class="borderrad4px article_footer_item1" /> {{ if $url }}</a>{{ end }}
|
assets/images/foundations/{{- $l -}} .* missing
|
||||||
</div>
|
</div>
|
||||||
{{ else }}
|
{{ else }}
|
||||||
{{ if eq hugo.Environment "development" }}
|
picture missing.
|
||||||
<div class="foundations_item">
|
|
||||||
assets/images/foundations/{{- $l -}} .* missing
|
|
||||||
</div>
|
|
||||||
{{ else }}
|
|
||||||
picture missing.
|
|
||||||
{{ end }}
|
|
||||||
{{ end }}
|
{{ end }}
|
||||||
{{ end }}
|
{{ end }}
|
||||||
|
{{ end }}
|
||||||
|
</div>
|
||||||
|
{{ end }}
|
||||||
|
<div class="mod_times">
|
||||||
|
<div class="mod_times_item">
|
||||||
|
<div class="bold">{{ if i18n "created" }}{{ i18n "created" }}{{ else }}{{ "Created" }}{{ end }}: </div>
|
||||||
|
<div>{{ .Date | time.Format ":date_full" }}</div>
|
||||||
|
</div>
|
||||||
|
{{ if ne .Date .Lastmod }}
|
||||||
|
<div class="mod_times_item">
|
||||||
|
<div class="bold">{{ if i18n "lastmod" }}{{ i18n "lastmod" }}{{ else }}{{ "Last modification" }}{{ end }}: </div>
|
||||||
|
<div>{{ .Lastmod | time.Format ":date_full" }}</div>
|
||||||
</div>
|
</div>
|
||||||
{{ end }}
|
{{ end }}
|
||||||
<div class="mod_times">
|
</div>
|
||||||
<div class="mod_times_item">
|
</div>
|
||||||
<div class="bold">{{ if i18n "created" }}{{ i18n "created" }}{{ else }}{{ "Created" }}{{ end }}: </div>
|
|
||||||
<div>{{ .Date | time.Format ":date_full" }}</div>
|
|
||||||
</div>
|
|
||||||
{{ if ne .Date .Lastmod }}
|
|
||||||
<div class="mod_times_item">
|
|
||||||
<div class="bold">{{ if i18n "lastmod" }}{{ i18n "lastmod" }}{{ else }}{{ "Last modification" }}{{ end }}: </div>
|
|
||||||
<div>{{ .Lastmod | time.Format ":date_full" }}</div>
|
|
||||||
</div>
|
|
||||||
{{ end }}
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
{{ end }}
|
|
||||||
{{ end }}
|
{{ end }}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user