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

关于引用路径 #28

Closed
Nigh opened this issue Nov 20, 2015 · 2 comments
Closed

关于引用路径 #28

Nigh opened this issue Nov 20, 2015 · 2 comments

Comments

@Nigh
Copy link

Nigh commented Nov 20, 2015

由于目前生成的html中使用的引用全部都是绝对路径,导致页面只有在根目录下才能正常访问。执行替换"/"./后(暴力替换为相对路径)才可以部分正常访问。

问是否能将所有本地引用路径改为相对路径?

@imeoer
Copy link
Member

imeoer commented Nov 20, 2015

目前是支持相对路径的,config.yml中的root字段用于配置路径前缀。比如root设置为/blog,则所有-/的写法都会被替换为/blog/。 :)

@Nigh
Copy link
Author

Nigh commented Nov 20, 2015

thx, i'll try it.

@imeoer imeoer closed this as completed Nov 21, 2015
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

2 participants