From 258ee23221a98918b44eff59c46d3da7ca6c27ad Mon Sep 17 00:00:00 2001 From: Minteck Date: Sun, 9 Jan 2022 09:45:56 +0100 Subject: Update --- htdocs/public/archive/index.ejs | 4 ++-- htdocs/public/index.ejs | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) (limited to 'htdocs/public') diff --git a/htdocs/public/archive/index.ejs b/htdocs/public/archive/index.ejs index 8d5ca25..016d920 100644 --- a/htdocs/public/archive/index.ejs +++ b/htdocs/public/archive/index.ejs @@ -11,10 +11,10 @@ <% const monthNames = lang.archives.months; archives = []; - for (let archive of fs.readdirSync(serverRoot + "/data/archives")) { + for (let archive of fs.readdirSync(serverRoot + "/htdocs/data/archives")) { data = {}; if (archive.endsWith(".json")) { - json = JSON.parse(fs.readFileSync(serverRoot + "/data/archives/" + archive).toString()) + json = JSON.parse(fs.readFileSync(serverRoot + "/htdocs/data/archives/" + archive).toString()) data.id = archive.substr(0, archive.length - 5); data.name = json.title; diff --git a/htdocs/public/index.ejs b/htdocs/public/index.ejs index 1f4f1a7..942ad1d 100644 --- a/htdocs/public/index.ejs +++ b/htdocs/public/index.ejs @@ -4,7 +4,7 @@ TODO (<%- slang %>)
-
+

<%- lang.main.intro.title %>

— -- cgit