small fixes

This commit is contained in:
teldra 2022-04-05 15:21:51 +02:00
parent ccab16c0b0
commit 321f18981a
4 changed files with 18 additions and 2 deletions

View File

@ -31,6 +31,8 @@ featured = 'featured'
mainMenu = ['about']
searchSections = ['news']
placeholder_image = "/images/l.jpg"
# data for your imprint and contact page
[params.imprintdata]
tel = "(+) 49 5141 907 927"

Binary file not shown.

After

Width:  |  Height:  |  Size: 294 KiB

View File

@ -8,7 +8,9 @@
{{ partial "structure/article_meta" (dict "context" . "visible" "all") }}
{{ $small := "solo" }}
{{ $big := "solo" }}
{{- if and (.Resources.ByType "image") (.Content) -}}
{{ $placeholder := "/images/placeholder_article.jpg" }}
{{ $img := resources.Get $placeholder }}
{{- if or (.Resources.ByType "image") (.Content) ($img) -}}
{{ $small = "multiple_small" }}
{{ $big = "multiple_big" }}
{{ else }}
@ -24,6 +26,11 @@
<div id="articlepicture" class="{{ $small }} borderrad25">
<img src="{{- $thumb.Permalink -}}" class="borderrad25" />
</div>
{{ else if $img }}
{{- $img = $img.Resize "1024x" }}
<div id="articlepicture" class="{{ $small }} borderrad25">
<img src="{{- $img.Permalink -}}" class="borderrad25" />
</div>
{{ end }}
{{- if .Content -}}
<div id="articletext" class="{{ $big }}">

View File

@ -8,7 +8,9 @@
{{ partial "structure/article_meta" (dict "context" . "visible" "price") }}
{{ $small := "solo" }}
{{ $big := "solo" }}
{{- if and (.Resources.ByType "image") (.Summary) -}}
{{ $placeholder := "/images/placeholder_article.jpg" }}
{{ $img := resources.Get $placeholder }}
{{- if or (.Resources.ByType "image") (.Summary) ($img) -}}
{{ $small = "multiple_small" }}
{{ $big = "multiple_big" }}
{{ else }}
@ -24,6 +26,11 @@
<div id="articlepicture" class="{{ $small }} borderrad25">
<img src="{{- $thumb.Permalink -}}" class="borderrad25" />
</div>
{{ else if $img }}
{{- $img = $img.Resize "1024x" }}
<div id="articlepicture" class="{{ $small }} borderrad25">
<img src="{{- $img.Permalink -}}" class="borderrad25" />
</div>
{{ end }}
{{- if .Summary -}}
<div id="articletext" class="{{ $big }}">