ppoffice / hexo-theme-hueman

A redesign of Alx's wordpress theme Hueman, ported to Hexo.
http://ppoffice.github.io/hexo-theme-hueman/
GNU General Public License v2.0
1.17k stars 336 forks source link

Custom Menu items don't look right #203

Closed maxirus closed 6 years ago

maxirus commented 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>

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.

https://github.com/ppoffice/hexo-theme-hueman/blob/87ac098db5c842010816d48dd5fc5dbd620df362/layout/common/header.ejs#L29

ppoffice commented 6 years ago

@maxirus https://github.com/ppoffice/hexo-theme-hueman/issues/198