ferron

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

commit 7cdb4ecef8aeaa48ceb6727d47e9b978d3c4c0a1
parent 685c74911bc04c1881ef3e89435327b89587595a
Author: Hugo Soucy <hsoucy@kronostechnologies.com>
Date:   Wed,  4 Apr 2018 11:31:26 -0400

Add a comment about the slug

Diffstat:
Mferron/content.lua | 1+
1 file changed, 1 insertion(+), 0 deletions(-)

diff --git a/ferron/content.lua b/ferron/content.lua @@ -36,6 +36,7 @@ function content.makecontent() local archetypepath = Ferron.site.path .. Ferron.site.siteconfig.paths.archetypes .. "/" archetype.title = arg[2] + -- string.gsub(string.gsub(str,"[^ A-Za-z]",""),"[ ]+","-") better for the slug? archetype.filename = string.lower(archetype.title:gsub('%p','-'):gsub('%s','-')) archetype.date = os.date("%Y-%m-%d") archetype.datetime = os.date("%H:%M:%S")