motyl

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

commit b1484b8c361000c76cdd96c1b17db56d934e60e8
parent 5f0c64a137ac5e61bdf850ad619d7470faa9d592
Author: Frederic Cambus <fred@statdns.com>
Date:   Mon, 24 Apr 2017 19:10:29 +0200

Make number of feed items configurable

Diffstat:
Mexamples/motyl.conf | 1+
Msrc/motyl.lua | 2+-
2 files changed, 2 insertions(+), 1 deletion(-)

diff --git a/examples/motyl.conf b/examples/motyl.conf @@ -6,6 +6,7 @@ keywords: static, site, generator, ssg, motyl, lua author: Frederic Cambus copyright: '2016-2017' url: https://www.cambus.net/motyl/ +feedItems: 20 pages: - title: About url: /about/ diff --git a/src/motyl.lua b/src/motyl.lua @@ -138,7 +138,7 @@ table.sort(data.site.posts, sortDates) render("pages") -- Feed -for loop=1, 20 do +for loop=1, data.site.feedItems do data.site.feed[loop] = data.site.posts[loop] end