summary refs log tree commit diff
path: root/trivium.rb
diff options
context:
space:
mode:
authorLeah Neukirchen <leah@vuxu.org>2017-05-18 15:46:22 +0200
committerLeah Neukirchen <leah@vuxu.org>2017-05-18 15:46:22 +0200
commita35c64dddf69a0d90223800764e6b9a5e8a6dc68 (patch)
tree745e7b22b342c73a550d3807d4ea939020045ffc /trivium.rb
parent28e7d682b4a22ffca873b74bc4daa100a4d85933 (diff)
downloadtrivium-a35c64dddf69a0d90223800764e6b9a5e8a6dc68.tar.gz
trivium-a35c64dddf69a0d90223800764e6b9a5e8a6dc68.tar.xz
trivium-a35c64dddf69a0d90223800764e6b9a5e8a6dc68.zip
add JSON Feed
Diffstat (limited to 'trivium.rb')
-rw-r--r--trivium.rb4
1 files changed, 4 insertions, 0 deletions
diff --git a/trivium.rb b/trivium.rb
index bbb43d1..3ef8020 100644
--- a/trivium.rb
+++ b/trivium.rb
@@ -168,5 +168,9 @@ dep "html/index.atom", "template/atom.ht", *d do |dst|
   File.write(dst, template("template/atom.ht",
                            :entries => feed, :time => Time.now))
 end
+dep "html/index.json", "template/json.ht", *d do |dst|
+  File.write(dst, template("template/json.ht",
+                           :entries => feed, :time => Time.now))
+end
 
 system "rsync -r data/ html"