ferron

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

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

Use the SITE.BASEURL instead of the SITE.URL

Diffstat:
Mfunctions/make-pages.lua | 5+----
1 file changed, 1 insertion(+), 4 deletions(-)

diff --git a/functions/make-pages.lua b/functions/make-pages.lua @@ -31,10 +31,7 @@ local function makepages() md_metadatas.section = md_section md_metadatas.updated = md_updated md_metadatas.id = md_id - md_metadatas.permalink = - (Ferron.devmode == true and Ferron.site.config.SITE.URLDEV or Ferron.site.config.SITE.URL) .. - (md_plainname ~= "index" and md_relpath .. ".html" or "") - + md_metadatas.permalink = Ferron.site.config.SITE.BASEURL .. (md_plainname ~= "index" and md_relpath .. ".html" or "") Ferron.site.pagestable[md_key] = md_metadatas