Skip to content

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