From 7c88bc39771cbb68ff28260808021853493171f8 Mon Sep 17 00:00:00 2001 From: sejo Date: Sun, 27 Mar 2022 20:02:45 -0600 Subject: [PATCH] corrected domain in feeds --- generasitio.lua | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/generasitio.lua b/generasitio.lua index d5e843b..a9308d2 100644 --- a/generasitio.lua +++ b/generasitio.lua @@ -7,7 +7,6 @@ meta = { webdir = "web" -- web output directory gemdir = "gem" -- gemini output directory --- TODO templates in spanish templates = { webEn = { header = { path = "pageheader.html", template = ""}, @@ -454,14 +453,14 @@ function genLog() logs.gmolog.f:write(string.format(gmoformat, date, text, slug, wikilink)) -- twtxt - local weburl = string.format("https://%s/%s.html",domain,slug) - local gemurl = string.format("gemini://%s/%s.gmi",domain,slug) + local weburl = string.format("https://%s/%s.html",meta.domain,slug) + local gemurl = string.format("gemini://%s/%s.gmi",meta.domain,slug) local twtxtformat = "%s\t%s | %s\n" logs.webtw.f:write(string.format(twtxtformat, timestamp, text, weburl)) logs.gemtw.f:write(string.format(twtxtformat, timestamp, text, gemurl)) -- atom - local weburldate = string.format("https://%s/%s.html#%s",domain,slug,date) + local weburldate = string.format("https://%s/%s.html#%s",meta.domain,slug,date) local atomformat = [[