关于菜单栏的使用,使用第二种方式会找不到页面 #453
Unanswered
lspiritcoderl
asked this question in
Q&A
Replies: 1 comment
-
这个问题和主题没什么关系,你应该检查下你的固定连接配置。 主题演示站点的配置会把 hugo-theme-stack/exampleSite/config.yaml Lines 21 to 23 in 86cbc1b |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
我的hugo站点有两个主题,有时要切换使用,所以我不想在content文件夹下面写多余的和配置相关的文件,这样另一个主题会将这些文件当成文章发布出来。
于是在定义菜单栏的时候我没有选用推荐的做法,而是选择了第二种方法。
但是选用第二种方法,我发现填写url后,并不能正确找到需要的页面,具体表现如下:
当我把配置文件改成这样后,使用
hugo server -D
,archives的菜单栏确实出现了,但是点击后显示404,也就是找不到页面。我尝试将page文件夹复制到content文件夹下,发现是可以正常使用的,而且url也是
/archives
,不知道为什么直接在yaml中配置没有效果。Beta Was this translation helpful? Give feedback.
All reactions