From ff4f709486a69bc1650db73a003255e58cae0532 Mon Sep 17 00:00:00 2001 From: René 'Necoro' Neumann Date: Sat, 2 May 2020 02:06:56 +0200 Subject: Embedding images in mail --- internal/feed/template/feed.tpl.go | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) (limited to 'internal/feed/template/feed.tpl.go') diff --git a/internal/feed/template/feed.tpl.go b/internal/feed/template/feed.tpl.go index 8aab9d7..0e09180 100644 --- a/internal/feed/template/feed.tpl.go +++ b/internal/feed/template/feed.tpl.go @@ -40,14 +40,8 @@ const feedTpl = `{{- /*gotype:github.com/Necoro/feed2imap-go/internal/feed.feedi -{{with .Item.Content}} -
+{{with .Body}} {{html .}} -{{else}} -{{with .Item.Description}} -
- {{html .}} -{{end}} {{end}} {{with .Item.Enclosures}} @@ -59,7 +53,7 @@ const feedTpl = `{{- /*gotype:github.com/Necoro/feed2imap-go/internal/feed.feedi {{end}} -- cgit v1.2.3-54-g00ecf
    - {{.URL | lastUrlPart}} ({{.Length | byteCount}}, {{.Type}}) + {{.URL | lastUrlPart}} ({{with .Length}}{{. | byteCount}}, {{end}}{{.Type}})