change path system to use main isntead of body
This commit is contained in:
parent
8004194219
commit
46d0220427
3 changed files with 51 additions and 40 deletions
|
@ -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)
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue