ferron

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

commit c9c890278cb9748d52dfe2e1c2fcc4cbeabdd135
parent 95fe41774b604fc3ad36efe2e9d6d9f96460452a
Author: Hugo Soucy <hugo.soucy@equisoft.com>
Date:   Fri, 25 Oct 2019 09:48:49 -0400

Remove the partials argument

Diffstat:
Mferron/content.lua | 2--
Mferron/feed.lua | 2--
2 files changed, 0 insertions(+), 4 deletions(-)

diff --git a/ferron/content.lua b/ferron/content.lua @@ -85,7 +85,6 @@ function content.makecontent(contenttype, contenttitle) contentpath .. archetype.filename .. '.md', tp.rendermustache( fileutils.pullfilecontent(archetypepath .. archetypetype .. '.md' ), - site.templates .. '/partials', archetype ) ) @@ -95,7 +94,6 @@ function content.makecontent(contenttype, contenttitle) contentpath .. archetype.filename .. '.json', tp.rendermustache( fileutils.pullfilecontent(archetypepath .. archetypetype .. '.json'), - site.templates .. '/partials', archetype ) ) diff --git a/ferron/feed.lua b/ferron/feed.lua @@ -12,7 +12,6 @@ local tp = require 'ferron.utilities.template-utils' function feed.makefeed(entries, destination) local feedtypes = site.config.feedtypes - local feedpartials = fl.isDirectory(site.templates .. '/partials') for k, v in pairs(feedtypes) do local feedtemplate = site.templates .. '/feed/' .. k .. '.mustache' @@ -22,7 +21,6 @@ function feed.makefeed(entries, destination) destination .. '/' .. v.name .. v.extension, tp.rendermustache( fl.pullfilecontent(feedtemplate), - feedpartials, entries ) )