Answer the question
In order to leave comments, you need to log in
How to include pages in a page that inherits a template in PUG?
When getting to know pug, there was a problem:
I can't include pages in index.pug, which inherits the main.pug template.
I'm looking for advice on what approach is correct for development / layout:
1. In index.pug, write a commented list of pages in order to work with one of them (well, you understand, I hope), you uncommented with which you work.
2. In layout/main.pug, add a commented out list of pages and make it an index page.
The error says it's not the right way, but I've already prescribed it for everyone. Help.
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question