aboutsummaryrefslogtreecommitdiff
path: root/internal/feed/template/template.go
diff options
context:
space:
mode:
authorRené 'Necoro' Neumann <necoro@necoro.eu>2020-04-26 00:21:47 +0200
committerRené 'Necoro' Neumann <necoro@necoro.eu>2020-04-26 00:21:47 +0200
commit87fd0ad3e9309064fe9fda373035f5ce127ae8d8 (patch)
tree0a076418994872a12c26b98320f600668722f25e /internal/feed/template/template.go
parent92b3181672b62052d4193749cd02f4be7d91e2ee (diff)
downloadfeed2imap-go-87fd0ad3e9309064fe9fda373035f5ce127ae8d8.tar.gz
feed2imap-go-87fd0ad3e9309064fe9fda373035f5ce127ae8d8.tar.bz2
feed2imap-go-87fd0ad3e9309064fe9fda373035f5ce127ae8d8.zip
Improved HTML template
Diffstat (limited to '')
-rw-r--r--internal/feed/template/template.go6
1 files changed, 3 insertions, 3 deletions
diff --git a/internal/feed/template/template.go b/internal/feed/template/template.go
index 7871e06..4c7b636 100644
--- a/internal/feed/template/template.go
+++ b/internal/feed/template/template.go
@@ -9,11 +9,11 @@ import (
"github.com/Necoro/feed2imap-go/pkg/log"
)
-func dict(v ...string) map[string]string {
- dict := map[string]string{}
+func dict(v ...interface{}) map[string]interface{} {
+ dict := make(map[string]interface{})
lenv := len(v)
for i := 0; i < lenv; i += 2 {
- key := v[i]
+ key := v[i].(string)
if i+1 >= lenv {
dict[key] = ""
continue
b386a0cf582f973bf&follow=1'>Better detection if a text starts with html or notRené 'Necoro' Neumann2-4/+13 2020-05-07go fmtRené 'Necoro' Neumann1-3/+2 2020-05-07Add header X-Feed2Imap-GUIDRené 'Necoro' Neumann3-1/+7 2020-05-07update changelogRené 'Necoro' Neumann1-0/+1 2020-05-07FixRené 'Necoro' Neumann1-1/+1 2020-05-07Unified publishedDate and updatedDate into one (just as the old feed2imap...)René 'Necoro' Neumann5-21/+32 2020-05-06Print version during startupRené 'Necoro' Neumann1-1/+1 2020-05-06Improve templateRené 'Necoro' Neumann3-20/+28 2020-05-05Fix pipelineRené 'Necoro' Neumann1-2/+5 2020-05-05Make changelog a part of the release pipeline (untested)René 'Necoro' Neumann2-0/+12