forked from Bunteshaus/bunteshaus.de
small fixes
This commit is contained in:
parent
a903cef62c
commit
4013fa696f
|
@ -78,7 +78,7 @@
|
|||
<div id="articleinner">
|
||||
{{ if ne $img "" }}
|
||||
<div id="articlepicture" class="{{ $small }} borderrad25">
|
||||
{{ if ne .type "list" }}<a href="{{- $img.Permalink -}}">{{ end }}
|
||||
{{ if and (ne .type "list") (.context.Resources.ByType "image") }}<a href="{{- $img.Permalink -}}">{{ end }}
|
||||
<img src="{{- $thumb.Permalink -}}" class="borderrad25" />
|
||||
{{ if ne .type "list" }}</a>{{ end }}
|
||||
</div>
|
||||
|
|
|
@ -56,7 +56,7 @@
|
|||
{{ $big := "solo" }}
|
||||
{{ $img := "" }}
|
||||
{{ $thumb := "" }}
|
||||
{{ $placeholder := "/images/no_article_pic.svg" }}
|
||||
{{ $placeholder := "/images/no_article_pic.png" }}
|
||||
{{ if ne .context.Section "misc"}}
|
||||
{{ $img = resources.Get $placeholder }}
|
||||
{{- $thumb = $img.Resize "1024x" }}
|
||||
|
|
Loading…
Reference in New Issue
Block a user