small fixes

This commit is contained in:
teldra 2022-04-05 12:14:15 +02:00
parent 72ff357ad5
commit f1a6e3156a

View File

@ -57,7 +57,7 @@
<guid>{{ .Permalink }}-{{ $hash }}</guid>
<description>
{{- if $when -}}{{- $when | plainify -}}{{- end -}}
{{- $c := .Content | plainify -}}
{{- $c := .Content -}}
{{- if $when -}}{{- $c = printf "<p>%s</p>%s" $when $c -}}{{- end -}}
{{- $img := index (.Resources.ByType "image") 0 -}}
{{- with $img -}}