small fixes

This commit is contained in:
teldra 2022-04-06 02:41:56 +02:00
parent a903cef62c
commit 4013fa696f
2 changed files with 2 additions and 2 deletions

View File

@ -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>

View File

@ -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" }}