Skip to content

修复page路径问题 #16

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

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

Conversation

KumaNNN
Copy link

@KumaNNN KumaNNN commented Aug 3, 2020

原先的page路径采用的是,内容标题,且非英文和数字的都替换为-,将导致about的实际路径并不是这样的/api/pages/about.json

此修复,page路径采用的是page.source变量,其值类似 404/index.md,取值斜杠前面的,如 404。将可正确的获取路径。
并且,source 目录下有其它文件夹,并不属于page范畴,在配置中添加选项,可排除。

@KumaNNN
Copy link
Author

KumaNNN commented Aug 3, 2020

@yscoder

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

Successfully merging this pull request may close these issues.

1 participant