motyl

Opinionated blog-aware static site generator written in Ruby
Log | Files | Refs | README | LICENSE

commit a145b3e0253852a6a8d5593f367c64b35661f7a9
parent 2a653478ea1433b00667b050b413941bc340fa4a
Author: Frederic Cambus <fred@statdns.com>
Date:   Tue,  4 May 2021 13:29:22 +0200

Fix an off-by-one error, we want 20 posts in the Atom feed.

Diffstat:
Mbin/motyl | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/bin/motyl b/bin/motyl @@ -114,7 +114,7 @@ data['posts'].sort! { |a, b| b['date'] <=> a['date'] } render('pages', templates, data) # Feed -data['feed'] = data['posts'][0..20] +data['feed'] = data['posts'][0..19] File.write('public/atom.xml', Mustache.render(templates['atom'], data)) status('Rendering atom.xml')