-
-
Notifications
You must be signed in to change notification settings - Fork 4.9k
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
partial不支持向上级目录查找,绝对路径也不可以使用 #819
Labels
bug
Something isn't working
Milestone
Comments
Use absolute path instead.
|
The following is how Hexo resolves template path: Line 125 in ee03693
this.theme.getView(pathFn.join(pathFn.dirname(this.path), name)); In your situation, pathFn.dirname(this.path) => '/themes/greeneye'
pathFn.join(dirname, '../layout/_partial_article') => '/themes/layout/_partial/article' I'll try to fix this bug later. |
Fiexed? |
@tommy351 Had this fixed? |
Fixed in Hexo v3.x |
@stevenjoezhang |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
|- A
|----a.ejs
|-B
|----b.ejs
当前在a.ejs处,partial('../B/b')不能获取b.ejs
The text was updated successfully, but these errors were encountered: