summaryrefslogtreecommitdiff
path: root/templates
diff options
context:
space:
mode:
Diffstat (limited to 'templates')
-rw-r--r--templates/name.tmpl3
-rw-r--r--templates/updates.json.tmpl3
2 files changed, 3 insertions, 3 deletions
diff --git a/templates/name.tmpl b/templates/name.tmpl
deleted file mode 100644
index 108b8a3..0000000
--- a/templates/name.tmpl
+++ /dev/null
@@ -1,3 +0,0 @@
-{{ define "content" }}
-{{ .Latest.Name }}
-{{ end }} \ No newline at end of file
diff --git a/templates/updates.json.tmpl b/templates/updates.json.tmpl
new file mode 100644
index 0000000..529a2e0
--- /dev/null
+++ b/templates/updates.json.tmpl
@@ -0,0 +1,3 @@
+{{ define "content" }}
+[{{ range $i, $update := .Updates }}{{ if $i }},{{ end }}{"name": "{{$update.Name}}", "time": "{{$update.Time.Format "2006-01-02T15:04:05.000Z"}}"}{{ end }}]
+{{ end }} \ No newline at end of file