--- {{ range $key, $value := . -}} {{- if or (eq $key "author") (eq $key "date") (eq $key "tags") -}} {{- $key }}: {{ $value }} {{ end -}} {{ end -}} feed: {{ range $key, $value := . -}} {{- if and (ne $key "author") (ne $key "content") (ne $key "date") (ne $key "tags") -}} {{ print " " }}{{- $key }}: {{ $value | jsonify }} {{ end -}} {{ end -}} --- {{ $content := .content }} {{- $content = replace $content "{" "{" -}} {{- $content = replace $content "}" "}" -}} {{- $content = replace $content "[" "[" -}} {{- $content = replace $content "]" "]" -}} {{ $content }} {{- $caption := "Image/Picture" -}} {{- with $content -}} {{ $caption = $content | truncate 80 "" }} {{- end }} {{ with .enclosure -}} {{- if or (in . ".apng") (in . ".avif") (in . ".gif") (in . ".jfif") (in . ".jpeg") (in . ".jpg") (in . ".pjp") (in . ".pjpeg") (in . ".png") (in . ".svg") (in . ".webp") -}} ![{{ $caption }}]({{ . }} " {{ $caption }}" ) {{- end -}} {{- end }}