small fixes

This commit is contained in:
teldra 2022-04-05 12:33:01 +02:00
parent f1a6e3156a
commit 6f233a5412

View File

@ -58,6 +58,8 @@
<description>
{{- if $when -}}{{- $when | plainify -}}{{- end -}}
{{- $c := .Content -}}
{{- $c := replace $c "<img" "<img width=\"600\"" -}}
{{- if $when -}}{{- $c = printf "<p>%s</p>%s" $when $c -}}{{- end -}}
{{- $img := index (.Resources.ByType "image") 0 -}}
{{- with $img -}}