From 5190019fc328759e2b62a690d231c904851f5b0a Mon Sep 17 00:00:00 2001 From: sejo Date: Sun, 27 Mar 2022 18:19:09 -0600 Subject: [PATCH] generate nav --- generasitio.lua | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/generasitio.lua b/generasitio.lua index d8cb71e..445d138 100644 --- a/generasitio.lua +++ b/generasitio.lua @@ -7,6 +7,7 @@ meta = { webdir = "webtest" -- web output directory gemdir = "gemtest" -- gemini output directory +-- TODO templates in spanish templates = { webEn = { header = { path = "pageheader.html", template = ""}, @@ -112,6 +113,8 @@ function firstPass() -- table to store the lines to write to file local lines = { web = {}, gem = {} } + local navlines = { "" ) + pagemeta.navcontent = table.concat( navlines, "\n" ) + -- set templates pagemeta.outs.web.templates = templates.webEn pagemeta.outs.gem.templates = templates.gemEn @@ -483,6 +493,7 @@ local n = genIndex() -- converting from gmo to gmi and html and calculating incoming links print(string.format("convirtiendo %d páginas...",n)) firstPass() + -- second pass, write incoming links print("escribiendo incoming links...") secondPass()