site: use tailwind

This commit is contained in:
Harvey Tindall
2022-01-04 21:13:09 +00:00
parent 3b0701e772
commit e86f5f4c3c
10 changed files with 1812 additions and 110 deletions

View File

@@ -48,9 +48,13 @@ const fixHTML = (infile, outfile) => {
let inpath = process.argv[process.argv.length-2];
let outpath = process.argv[process.argv.length-1];
let files = fs.readdirSync(inpath);
for (let i = 0; i < files.length; i++) {
if (files[i].indexOf(".html")>=0) {
fixHTML(path.join(inpath, files[i]), path.join(outpath, files[i]));
if (fs.statSync(inpath).isDirectory()) {
let files = fs.readdirSync(inpath);
for (let i = 0; i < files.length; i++) {
if (files[i].indexOf(".html")>=0) {
fixHTML(path.join(inpath, files[i]), path.join(outpath, files[i]));
}
}
} else {
fixHTML(inpath, outpath);
}