change path system to use main isntead of body

This commit is contained in:
Bingus_Violet 2024-02-13 09:38:29 -06:00
parent 8004194219
commit 46d0220427
3 changed files with 51 additions and 40 deletions

View file

@ -47,7 +47,7 @@ function converter(html) {
pagePath = pagePath.toLowerCase()
var pageHTML = fs.readFileSync(path.join(__dirname, 'static', pagePath, 'index.html')).toString()
pageHTML = pageHTML.substring(pageHTML.indexOf('<body>') + 6, pageHTML.indexOf('</body>'))
pageHTML = pageHTML.substring(pageHTML.indexOf('<main>') + 6, pageHTML.indexOf('</main>'))
html = html.replace(stringIndex, pageHTML)
}