Answer the question
In order to leave comments, you need to log in
How to properly modify a piece of template in Jade?
There is template.jade
doctype html
html
head
meta(charset='utf-8')
meta(http-equiv='X-UA-Compatible', content='IE=edge')
block pageTitle
title TEMPLATE | #{pageTitle}
meta(name='description', content='')
meta(name='viewport', content='width=device-width, initial-scale=1')
link(rel='stylesheet', href='../css/main.css')
//[if lt IE 9]><script src="http://html5shiv.googlecode.com/svn/trunk/html5.js"></script><![endif]
block body
block bottom-script
script(src='../js/plugins.js')
script(src='../js/main.js')
extend _template
block pageTitle
- var pageTitle = 'Sample Page'
block prepend body
body
include parts/_header
main.page-content.sample-page
... content ...
header.main-header
... content ...
Answer the question
In order to leave comments, you need to log in
just include another header
include parts/_header-slim on the necessary pages
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question