20 lines
820 B
PHP
20 lines
820 B
PHP
|
<!-- Navigation -->
|
||
|
<nav class="navbar navbar-expand-lg navbar-dark bg-dark fixed-top">
|
||
|
<div class="container">
|
||
|
<a class="navbar-brand" href="#">
|
||
|
<span class="text-white"><?php echo $site->title() ?></span>
|
||
|
</a>
|
||
|
<button class="navbar-toggler" type="button" data-toggle="collapse" data-target="#navbarResponsive" aria-controls="navbarResponsive" aria-expanded="false" aria-label="Toggle navigation">
|
||
|
<span class="navbar-toggler-icon"></span>
|
||
|
</button>
|
||
|
<div class="collapse navbar-collapse" id="navbarResponsive">
|
||
|
<ul class="navbar-nav ml-auto">
|
||
|
<?php foreach ($staticContent as $staticPage): ?>
|
||
|
<li class="nav-item">
|
||
|
<a class="nav-link" href="<?php echo $staticPage->permalink() ?>"><?php echo $staticPage->title() ?></a>
|
||
|
</li>
|
||
|
<?php endforeach ?>
|
||
|
</ul>
|
||
|
</div>
|
||
|
</div>
|
||
|
</nav>
|