small fixes

This commit is contained in:
teldra 2022-06-15 20:04:06 +02:00
parent 976880627a
commit 81b2c05712
2 changed files with 18 additions and 3 deletions

View File

@ -5,7 +5,4 @@ banner: false
---
Konzerte: konzerte@bunteshaus.de
Anfahrt:
![](1)
Routenplanung via [Googlemaps](https://www.google.com/maps/dir//Buntes+Haus+e.V.,+Hannoversche+Str.+30F,+29221+Celle/@52.6156635,10.0795909,17z/data=!4m16!1m6!3m5!1s0x47b0180746b97409:0xc85c7b0ba432ab1d!2sBuntes+Haus+e.V.!8m2!3d52.6156635!4d10.0817796!4m8!1m0!1m5!1m1!1s0x47b0180746b97409:0xc85c7b0ba432ab1d!2m2!1d10.0817796!2d52.6156635!3e1), [openrouteservice.org](https://maps.openrouteservice.org/#/directions/null/Hannoversche%20Stra%C3%9Fe%2030f,Celle,NI,Deutschland/data/55,130,32,198,15,97,4,224,38,9,96,59,2,24,5,192,166,6,113,0,184,72,129,92,1,178,32,26,66,72,27,128,70,0,24,3,165,160,14,0,153,105,96,54,0,89,189,182,142,2,176,112,9,202,64,75,122,29,168,10,224,29,128,95,14,76,120,138,226,20,136,8,0,29,83,192,136,155,14,80,0,188,160,5,181,205,67,134,173,208,32,3,55,132,93,46,112,1,60,193,18,64,28,192,45,52,116,111,98,100,104,117,16,91,116,123,116,0,196,48,23,60,0,200,51,51,116,68,88,116,88,16,0,95,44,160,0,0)

View File

@ -1,4 +1,5 @@
{{ $text := "solo" }}
{{ $content := .context.Content }}
<section>
<div class="articleinner">
<div class="articletext {{ $text }}">
@ -9,6 +10,23 @@
{{ if i18n "executive" }}{{ i18n "executive" }}{{ else }}{{ "Executive" }}{{ end }}: {{ .context.Site.Params.imprintdata.executive }}
{{ end }}
{{ .content }}
{{ if .context.Resources.ByType "image" }}
{{ range .context.Resources.ByType "image" }}
{{ $picname := . }}
{{ if not (or (in $content $picname.Name ) (hasPrefix $picname.Name "banner") )}}
<div class="article-image">
<a href="{{- $picname.Permalink -}}" class="no_underline">
<img loading="lazy"
src="{{ .Permalink }}"
alt="{{ . }}"
{{ with .Title}} title="{{ . }}"{{ end }}
width={{ $picname.Width }}
height="{{ $picname.Height }}" />
</a>
</div>
{{ end }}
{{ end }}
{{ end }}
</div>
</div>
</section>