hexo网页启动后发现首页按了不能正确连接
在网页链接处为
http://localhost:4000/%20
内容为
Cannot GET /%20
原因为主题的配置文件_config.yml格式错误
_config.yml 中的menu配置
menu:
home: / || home
#about: /about/ || user
#tags: /tags/ || tags
#categories: /categories/ || th
#archives: /archives/ || archive
#schedule: /schedule/ || calendar
#sitemap: /sitemap.xml || sitemap
#commonweal: /404/ || heartbeat
可以看到每个结尾/
后面都有空格,而空格在链接中就显示为了%20,这就是错误的原因,将/
后的空格删除则可以正确连接
menu:
home: /|| home