In my bootstrap 4 grid layout, the first row consists of only a heading. The second row includes a vertical nav that I want to keep aligned with the content by placing it in the same row. However, on desktop only, I would like the heading to appear above the content and nav. On mobile, I want the nav to be positioned in the top left corner. Below is how I achieved this by duplicating the heading. Is there a more efficient way to achieve the same result?
<link href="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0-alpha.6/css/bootstrap.min.css" rel="stylesheet" />
<script src="https://code.jquery.com/jquery-3.1.1.slim.min.js" integrity="sha384-A7FZj7v+d/sdmMqp/nOQwliLvUsJfDHW+k9Omg/a/EheAdgtzNs3hpfag6Ed950n" crossorigin="anonymous"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/tether/1.4.0/js/tether.min.js" integrity="sha384-DztdAPBWPRXSA/3eYEEUWrWCy7G5KFbe8fFjk5JAIxUYHKkDx6Qin1DkWx51bBrb" crossorigin="anonymous"></script>
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0-alpha.6/js/bootstrap.min.js" integrity="sha384-vBWWzlZJ8ea9aCX4pEW3rVHjgjt7zpkNpZk+02D9phzyeVkE+jo0ieGizqPLForn" crossorigin="anonymous"></script>
<div class="container">
<div class="row hidden-sm-down">
<div class="col">
<h1 class="text-center">Desktop Header</h1>
</div>
</div>
<div class="row">
<!--Nav Bar-->
<div class="col-md-3 col-lg-2 push-md-8">
<div class="bootstrap-vertical-nav">
<button class="btn btn-primary hidden-md-up" type="button" data-toggle="collapse" data-target="#collapseElement" aria-expanded="false" aria-controls="collapseElement">
<span class="fa fa-navicon"></span>
</button>
<div class="collapse fill-gutter" id="collapseElement">
<ul class="nav flex-column">
<li class="nav-item">
<a class="nav-link" href="#">Link 1</a>
</li>
</ul>
</div>
</div>
</div>
<!--End Nav Bar-->
<div class="col-md-8 col-lg-9 pull-md-3">
<h1 class="text-center hidden-md-up">Mobile header</h1>
<div class="row" id="page_body">
<h2>Content Goes Here</h2>
</div>
</div>
</div>
</div>