ferron

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

commit be4034481f4fb7e895509f337c1eb12e1c42f955
parent 5894a02e8232eb371df533a75a8d7735a1788f57
Author: Hugo Soucy <hugo.soucy@savoirfairelinux.com>
Date:   Fri, 26 Jan 2018 12:20:15 -0500

Comment.

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

diff --git a/functions/make-pages.lua b/functions/make-pages.lua @@ -63,7 +63,7 @@ local function makepages() print(" !! " .. md_relpath .. ".html - error!") end - pagesrelpath[#pagesrelpath +1] = md_relpath + --pagesrelpath[#pagesrelpath +1] = md_relpath -- Update the JSON file data fileutils.pushfilecontent(md_noextension .. ".json", json.encode(md_metadatas, {indent = true, keyorder = {"bridgy","cite","citeurl","content","date","datetime","description","id","keywords","permalink","section","template","title","updated"}})) @@ -76,11 +76,11 @@ local function makepages() } ) - for k, v in pairs(pagesrelpath) do - shortlinks[v] = ferronutils.shorturlencode(k) - end + -- for k, v in pairs(pagesrelpath) do + -- shortlinks[v] = ferronutils.shorturlencode(k) + -- end - print(inspect(shortlinks)) + -- print(inspect(shortlinks)) fileutils.pushfilecontent(datapath .. "/shortlinks.json", json.encode(shortlinks, {indent = true}))