ferron

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

commit 6d55abf038e3bb8b70a9ea19b17eed518a1ca8fe
parent 3de4c05cf9812a29c0853e24c816e203f2b44bf2
Author: Hugo Soucy <hugo@soucy.cc>
Date:   Sun, 19 Nov 2017 13:30:06 -0500

Set the value of the base url according to the devmode parameter.

Diffstat:
Mfunctions/set-site.lua | 1+
1 file changed, 1 insertion(+), 0 deletions(-)

diff --git a/functions/set-site.lua b/functions/set-site.lua @@ -19,6 +19,7 @@ local function setsite() until (tableutils.haskey(Ferron.sitesarray, tonumber(answer))) == true Ferron.site = Ferron.sites[Ferron.sitesarray[tonumber(answer)]] + Ferron.site.config.SITE.BASEURL = (Ferron.devmode == true and Ferron.site.config.SITE.URLDEV or Ferron.site.config.SITE.URL) return Ferron.site end