forked from Bunteshaus/bunteshaus.de
small fixes
This commit is contained in:
parent
ccab16c0b0
commit
321f18981a
|
@ -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"
|
||||
|
|
BIN
themes/buha/assets/images/placeholder_article.jpg
Normal file
BIN
themes/buha/assets/images/placeholder_article.jpg
Normal file
Binary file not shown.
After Width: | Height: | Size: 294 KiB |
|
@ -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 }}">
|
||||
|
|
|
@ -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 }}">
|
||||
|
|
Loading…
Reference in New Issue
Block a user