diff options
author | René 'Necoro' Neumann <necoro@necoro.eu> | 2020-05-06 22:56:38 +0200 |
---|---|---|
committer | René 'Necoro' Neumann <necoro@necoro.eu> | 2020-05-06 22:56:38 +0200 |
commit | e0a857eafebd92d5e94d156997d5d9422a50933f (patch) | |
tree | 4430fd19b59f05f82637bb45924009ab36b6c349 /internal/feed/template | |
parent | 9125f573c96001df5e4c76fd2183a9d368a552ab (diff) | |
download | feed2imap-go-e0a857eafebd92d5e94d156997d5d9422a50933f.tar.gz feed2imap-go-e0a857eafebd92d5e94d156997d5d9422a50933f.tar.bz2 feed2imap-go-e0a857eafebd92d5e94d156997d5d9422a50933f.zip |
Improve template
Diffstat (limited to 'internal/feed/template')
-rw-r--r-- | internal/feed/template/feed.tpl.go | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/internal/feed/template/feed.tpl.go b/internal/feed/template/feed.tpl.go index 0e09180..2f51bbe 100644 --- a/internal/feed/template/feed.tpl.go +++ b/internal/feed/template/feed.tpl.go @@ -64,10 +64,10 @@ const feedTpl = `{{- /*gotype:github.com/Necoro/feed2imap-go/internal/feed.feedi {{end}} <hr width="100%"/> <table width="100%" cellpadding="0" cellspacing="0"> - {{template "bottomLine" (dict "descr" "Date:" "content" .Item.Published)}} + {{template "bottomLine" (dict "descr" "Date:" "content" .Published)}} {{template "bottomLine" (dict "descr" "Author:" "content" .Creator)}} - {{template "bottomLine" (dict "descr" "Filed under:" "content" (join ", " .Item.Categories))}} - {{with .Feed.FeedLink}} + {{template "bottomLine" (dict "descr" "Filed under:" "content" (join ", " .Categories))}} + {{with .FeedLink}} {{template "bottomLine" (dict "descr" "Feed-Link:" "content" (print "<a style=\"color: #ababab;\" href=\"" . "\">" . "</a>" | html))}} {{end}} </table>` |