From a35c64dddf69a0d90223800764e6b9a5e8a6dc68 Mon Sep 17 00:00:00 2001 From: Leah Neukirchen Date: Thu, 18 May 2017 15:46:22 +0200 Subject: add JSON Feed --- trivium.rb | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'trivium.rb') 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" -- cgit 1.4.1