ferron

Ferron is a fast and simple static website generator made with Lua.
Log | Files | Refs | Submodules | README | LICENSE

commit 184008e290df0c8cb3b311f6358519c98b340998
parent d117e43320e5c5334b7862e5ac4291ac07cc14c0
Author: Hugo Soucy <hugo.soucy@toumoro.com>
Date:   Sat, 22 Feb 2020 19:07:33 -0500

Rename a param

Diffstat:
Mferron/feed.lua | 4++--
1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/ferron/feed.lua b/ferron/feed.lua @@ -10,7 +10,7 @@ local site = require 'ferron.site' local fl = require 'ferron.utilities.file-utils' local tp = require 'ferron.utilities.template-utils' -function feed.makefeed(entries, destination) +function feed.makefeed(data, destination) local feedtypes = site.config.feedtypes for k, v in pairs(feedtypes) do @@ -21,7 +21,7 @@ function feed.makefeed(entries, destination) destination .. '/' .. v.name .. v.extension, tp.rendermustache( fl.pullfilecontent(feedtemplate), - entries + data ) ) else