aboutsummaryrefslogtreecommitdiff
path: root/internal/template/feed.tpl.go
diff options
context:
space:
mode:
authorRené 'Necoro' Neumann <necoro@necoro.eu>2020-04-22 23:53:31 +0200
committerRené 'Necoro' Neumann <necoro@necoro.eu>2020-04-22 23:53:31 +0200
commit7bfe97f3e72279a17c16803d64a16beb55944332 (patch)
treec8b09860629e2ecfbd0e6ef7382ae60c2dd80f47 /internal/template/feed.tpl.go
parent9280ecb7e0b0039d6c1f4800373eb76452145078 (diff)
downloadfeed2imap-go-7bfe97f3e72279a17c16803d64a16beb55944332.tar.gz
feed2imap-go-7bfe97f3e72279a17c16803d64a16beb55944332.tar.bz2
feed2imap-go-7bfe97f3e72279a17c16803d64a16beb55944332.zip
Fix html template
Diffstat (limited to 'internal/template/feed.tpl.go')
-rw-r--r--internal/template/feed.tpl.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/internal/template/feed.tpl.go b/internal/template/feed.tpl.go
index 2bf07f3..3f6470f 100644
--- a/internal/template/feed.tpl.go
+++ b/internal/template/feed.tpl.go
@@ -70,7 +70,7 @@ const feedTpl = `{{- /*gotype:github.com/Necoro/feed2imap-go/internal/feed.feedi
<hr width="100%"/>
<table width="100%" cellpadding="0" cellspacing="0">
{{template "bottomLine" (dict "descr" "Date:" "content" .Item.Published)}}
- {{template "bottomLine" (dict "descr" "Author:" "content" .Item.Author.Name)}}
+ {{with .Item.Author}}{{template "bottomLine" (dict "descr" "Author:" "content" .Name)}}{{end}}
{{template "bottomLine" (dict "descr" "Subject:" "content" .Item.Title)}}
{{template "bottomLine" (dict "descr" "Filed under:" "content" (join ", " .Item.Categories))}}
</table>`