Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

发现一个自定义url生成问题 #50

Closed
Chef5 opened this issue Nov 27, 2018 · 3 comments
Closed

发现一个自定义url生成问题 #50

Chef5 opened this issue Nov 27, 2018 · 3 comments

Comments

@Chef5
Copy link

Chef5 commented Nov 27, 2018

我需改hexo的_config.yml中的permalink,
将其改为:
permalink: :category/:title.html
然后重新生成,查看页面还是“https://域名/post/文章名”
我切换官方自带那个主题,就可以实现“目录/文章名.html”的效果
希望能得到您的指点。

@ikeq
Copy link
Owner

ikeq commented Dec 2, 2018

目前不支持自定义 url,因本质是单页应用,路由全部都由 js 重新定义,如果开放自定义路由,例如上面的路由,就已经和 page 路由冲突了。

@ikeq ikeq closed this as completed Dec 2, 2018
@ikeq
Copy link
Owner

ikeq commented Dec 2, 2018

这个主题的 page 路由可以很灵活,支持嵌套。

@fightinggg
Copy link

目前不支持自定义 url,因本质是单页应用,路由全部都由 js 重新定义,如果开放自定义路由,例如上面的路由,就已经和 page 路由冲突了。

求作者大大支持这种写法 permalink: :category/:title.html

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants