Skip to content
This repository has been archived by the owner on Oct 3, 2021. It is now read-only.

Commit

Permalink
Add support for multi-word custom HTML page name
Browse files Browse the repository at this point in the history
  • Loading branch information
MrPetovan committed Nov 20, 2018
1 parent 6d4354c commit b61afa9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/templates/layout.phtml
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@
</li>
<?php foreach ($pages as $page):?>
<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>
<?php endforeach;?>
</ul>
Expand Down

0 comments on commit b61afa9

Please sign in to comment.