Closed sqllyw closed 3 years ago
put this in head:
<base href="/" >
add page() in code:
page.base('');
page('/about', about);
page(); // add this
function about() {
document.querySelector('p')
.textContent = 'viewing about';
}
Hi,
Totally new to pages.js, trying to make a simple page work, sample is here
click 'about', but got 404, any idea? thanks