At the moment, I have the following (in Pug):
block content
header
.header-content
.header-content-inner
h1#homeHeading= title
hr
p
| This is just a proof of concept
a.btn.btn-primary.btn-xl.page-scroll(href='#about') Find Out More
This has a specific background image (Stylus):
header
position relative
width 100%
min-height auto
-webkit-background-size cover
-moz-background-size cover
background-size cover
-o-background-size cover
background-position center
background-image url('/images/header.jpg')
text-align center
color $bg-white
For other routes, I have the former block of code, but I'm wondering if it's at all possible to have a different background image for each route?
For example,
index would have '/images/header.jpg'
route1 would have '/images/header-1.jpg'
route2 would have '/images/header-2.jpg'
... and so on ...
Thanks
Just add another class to your header in each route's template. e.g:
… and set the background image with some new styles in your stylesheet: