postpage, or a
page, erm..., page 🤷🏻♂️ by changing the colour of the border depending on which type of page we're on.
isPostTypeprop to the
page, or maroon in the case of a
isPageprop to our header, and extend our conditional.
Homethe header has a maroon border (as it's a listing page), if we click on one of the posts the post page has a green border, and if we navigate to
About Us, (which is a page rather than a post) the header has a blue border.
isPageboolean properties found in the data for the current URL.