special pages workflow changed

This commit is contained in:
Jan Prochazka
2024-10-21 17:36:46 +02:00
parent 967615b6e5
commit 32c7919885
14 changed files with 339 additions and 109 deletions

View File

@@ -2,7 +2,17 @@ const fs = require('fs');
const template = fs.readFileSync('./index.html.tpl', 'utf-8');
for (const page of ['', 'not-logged', 'error', 'admin-login', 'login', 'admin', 'license']) {
for (const page of [
'',
'not-logged',
'error',
'admin-login',
'login',
'admin',
'license',
'set-admin-password',
'redirect',
]) {
const text = template.replace(/{{page}}/g, page);
fs.writeFileSync(`public/${page || 'index'}.html`, text);
}