Add support for multi-word custom HTML page name

This commit is contained in:
Hypolite Petovan 2018-11-19 22:43:34 -05:00
parent 6d4354c97f
commit b61afa9502
1 changed files with 1 additions and 1 deletions

View File

@ -98,7 +98,7 @@
</li> </li>
<?php foreach ($pages as $page):?> <?php foreach ($pages as $page):?>
<li class="nav-item"> <li class="nav-item">
<a class="nav-link" href="<?php echo strtolower(basename($page, '.html'))?>"><?php echo basename($page, '.html')?></a> <a class="nav-link" href="<?php echo strtolower(basename($page, '.html'))?>"><?php echo str_replace('_', ' ', basename($page, '.html'))?></a>
</li> </li>
<?php endforeach;?> <?php endforeach;?>
</ul> </ul>