There is such a code on jade (pug):
body( |{% case page.url %} | {% when '/' %} | class="hellopage" | {% when page.url contains '/gallery/' %} | class="gallerypage" |{% endcase %} ) All {% ..%}, these are Liquid items, therefore you should not compile them with Jade, for this purpose you use | .
Naturally, the compiler does not understand this format (I use gulp-jade), what can you advise?