You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have an Hexo website using the default landscape theme. I wanted to have the navbar at the top to have a few additional entries, pointing to pages or external URLs. So I added these entries in the menu: section of the themes _config.yml file, pointing to pages I created with the command hexo new page "clojure" or to external URLs
When I visit Home or the external URL links, that works okay. When I visit the Archive, Clojure or Ubuntu links in the navbar, they fail because they don't include the subfolder name.
For example, the archive link in the top level navbar has the link
Yes, I was missing something. In the theme _config.yml definition for menu, apart from home the other entries should not start with a /, so /archive should be archive
So now I have updated my navbar with the following configuration
Oh, I got the same problem with you, and I have tried your methods, the shit slash/////////////
i'm lucky to see this article, i have fix it.Thank you a lot!
zhipengyan
pushed a commit
to zhipengyan/hexo
that referenced
this issue
Apr 4, 2016
I have an Hexo website using the default landscape theme. I wanted to have the navbar at the top to have a few additional entries, pointing to pages or external URLs. So I added these entries in the
menu:
section of the themes_config.yml
file, pointing to pages I created with the commandhexo new page "clojure"
or to external URLsWhen I visit Home or the external URL links, that works okay. When I visit the Archive, Clojure or Ubuntu links in the navbar, they fail because they don't include the subfolder name.
For example, the archive link in the top level navbar has the link
and when deployed on github pages, has the link:
when it should have the respective links
In the root _config.yml file, I defined the website URL using github pages, also specifying the child directory:
Unless I have missed something, it seems you either have to hard code the child folder into the menu or this seems like a bug.
Thank you
The text was updated successfully, but these errors were encountered: