Closed maxirus closed 6 years ago
When adding custom menu items, as the docs suggest here, this line reformats it toLower and prefixes it with 'index.'; why? Am I missing something?
It seems this should be: <a class="main-nav-list-link" href="<%- url_for(theme.menu[i]) %>"><%= i %></a>
<a class="main-nav-list-link" href="<%- url_for(theme.menu[i]) %>"><%= i %></a>
ie. The docs say I can do:
menu: Home: / About: /about/index.html Github: https://github.com/
But this results in the menu bar getting index.github as the link/button.
index.github
https://github.com/ppoffice/hexo-theme-hueman/blob/87ac098db5c842010816d48dd5fc5dbd620df362/layout/common/header.ejs#L29
@maxirus https://github.com/ppoffice/hexo-theme-hueman/issues/198
When adding custom menu items, as the docs suggest here, this line reformats it toLower and prefixes it with 'index.'; why? Am I missing something?
It seems this should be:
<a class="main-nav-list-link" href="<%- url_for(theme.menu[i]) %>"><%= i %></a>
ie. The docs say I can do:
But this results in the menu bar getting
index.github
as the link/button.https://github.com/ppoffice/hexo-theme-hueman/blob/87ac098db5c842010816d48dd5fc5dbd620df362/layout/common/header.ejs#L29