You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Some of my pages have a side nav (not all, just a few). I'm using bootstrap and I was wondering how I could add proper classes when the sidenav file is present.
So when sidenav is present:
---col-3--- | ---col-9---
sideNav | page content
when not:
---col-12---
page content
My first shot was to do something in layout.jade but I cannot figure out how to check if the sideNav file is present or not in a simple way.
Here's roughly what I'd like to do in _layout.jade:
Some of my pages have a side nav (not all, just a few). I'm using bootstrap and I was wondering how I could add proper classes when the sidenav file is present.
So when sidenav is present:
when not:
My first shot was to do something in
layout.jade
but I cannot figure out how to check if thesideNav
file is present or not in a simple way.Here's roughly what I'd like to do in
_layout.jade
:Is this doable? Or is there a better way to handle this?
The text was updated successfully, but these errors were encountered: