aboutsummaryrefslogtreecommitdiff
path: root/internal/feed/mail.go
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--internal/feed/mail.go4
1 files changed, 1 insertions, 3 deletions
diff --git a/internal/feed/mail.go b/internal/feed/mail.go
index 4d07c1a..94f2ea1 100644
--- a/internal/feed/mail.go
+++ b/internal/feed/mail.go
@@ -31,10 +31,8 @@ func fromAdress(feed *Feed, item feeditem, cfg config.Config) []*mail.Address {
}
}
-var htmlTemplate = template.ForFile("internal/feed/feed.tpl")
-
func writeHtml(writer io.Writer, item feeditem) error {
- return htmlTemplate.Execute(writer, item)
+ return template.Feed.Execute(writer, item)
}
func writeToBuffer(b *bytes.Buffer, feed *Feed, item feeditem, cfg config.Config) error {