ferron

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

commit f598984716313a561f9e6793277bf14e91f08170
parent be64862675c751206845a84632eec9e1749989b6
Author: Hugo Soucy <hugo@soucy.cc>
Date:   Mon, 27 Apr 2020 14:23:49 -0400

Put the new name if the sample site + file a path problem

Diffstat:
MREADME.md | 2+-
Mferron/site.lua | 4++--
2 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/README.md b/README.md @@ -45,7 +45,7 @@ After that with your favorite texteditor or IDE edit the * **`sites`** * .gitignore - * **`ferron-ssg.tld`** + * **`sample`** * **`archetypes`** * `.gitignore` * `doc.json` diff --git a/ferron/site.lua b/ferron/site.lua @@ -168,7 +168,7 @@ function site.startsite(samplelocation) name = nil, location = nil, config = nil, - sample = config.sites .. 'ferron-ssg.tld', + sample = config.sites .. 'sample', } local location = samplelocation or newsite.sample @@ -181,7 +181,7 @@ function site.startsite(samplelocation) fl.mkdir(newsite.location) - os.execute('cp -Rp ' .. location .. '/*' .. ' ' .. newsite.location) + os.execute('cp -Rp ' .. lfs.currentdir() .. '/' .. location .. '/*' .. ' ' .. newsite.location) if fl.isDirectory(newsite.location) then return print('Your new website is ready to be cutomize here "' .. newsite.location .. '"!')