M
M
Max Zhukov2017-11-17 14:10:38
HTML
Max Zhukov, 2017-11-17 14:10:38

How to build a multipage website with Pug?

What should be the structure of the template, for example, so that on different pages the header is a little different or the footer is a little different, for some the same how to build a structure?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
K
Kirill Kublyakov, 2017-11-17
@Kublyakov

See how it is implemented by professional developers, for example https://github.com/CSSSR/csssr-project-template
Well, look for other boilerplates on github, most of the questions will disappear. And just looking at the solutions of various developers is always useful.

O
Oleg, 2017-11-17
@werty1001

Master BEM (they haven’t come up with anything better for layout yet), after you will have a division of layout into blocks, take out repeating blocks (header, footer) into a mixin and just call it on the pages, an example can be seen here .

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question