<% global.title = lang.archives.title; %> <%- include(`${private}/header.ejs`) %> ← <%- lang.global.back %>

<%- lang.archives.title %>

<% const monthNames = lang.archives.months; archives = []; for (let archive of fs.readdirSync(serverRoot + "/htdocs/data/archives")) { data = {}; if (archive.endsWith(".json")) { json = JSON.parse(fs.readFileSync(serverRoot + "/htdocs/data/archives/" + archive).toString()) data.id = archive.substr(0, archive.length - 5); data.name = json.title; data.description = json.description[slang] ?? json.description.en; data.date = (json.date.substr(3) + json.date.substr(0, 2)) - 1 + 1; if (json.unreleased) { let date = new Date(json.date.substr(3) + "-" + json.date.substr(0, 2) + "-01"); data.info = "" + lang.archives.never + " · " + monthNames[date.getMonth()] + " " + date.getFullYear(); } else { let date = new Date(json.date.substr(3) + "-" + json.date.substr(0, 2) + "-01"); data.info = lang.archives.released + " · " + monthNames[date.getMonth()] + " " + date.getFullYear(); } archives.push(data); } } archives = archives.sort((a, b) => a.date - b.date).reverse() %> <% for (let archive of archives) { %>
">

<%- archive.name %>

<%- archive.description %>

<%- lang.archives.download %>

<%- archive.info %>

<% } %>
<%- include(`${private}/footer.ejs`) %>