justint / papaya

A clean Zola theme for blogging and projects.
https://justintennant.me/papaya/
MIT License
45 stars 24 forks source link

Menu item hyperlinks have extra slash between base_url and slug #11

Open justint opened 1 year ago

justint commented 1 year ago
<nav>
 <ul>
  <li><a href="http://127.0.0.1:1111//projects">Projects</a></li>
  <li><a href="http://127.0.0.1:1111//blog">Blog</a></li>
  <li><a href="http://127.0.0.1:1111//tags">Tags</a></li>
  <li><a href="http://127.0.0.1:1111//about">About</a></li>
 </ul>
</nav>

This commit attempted to solve this problem, but introduced a new issue where the menu items would be missing a "/" inbetween the base url and the menu item slug (eg: justintennant.me/papayablog instead of justintennant.me/papaya/blog) for sites hosted within a directory of a domain (eg: justintennant.me/papaya). I've since reverted it until I can find a more elegant solution.