theme-next-docs
theme-next-docs copied to clipboard
图片路径问题
trafficstars
我的版本是5.1.3,新建一篇文章的时候,不是会在md文件同级位置,生成一个同名的文件夹嘛,把图片资源放里面。但是编译后,图片会在public里和文章生成的html页面在同级。问题是,图片路径怎么引用呢?如果是直接用相对路径,就是直接写图片名字,那么再文章页面里是显示正常的,因为编译后他俩在同一个目录下。可是,首页里如果文章预览有图片,首页的html文件和文章的html文件不在同一级啊,在首页上预览的文章图片就是显示不出来。怎么解决呢?我现在只能让他不在首页显示图片才可以
https://hexo.io/zh-cn/docs/asset-folders.html
Thank you!!
在 2018-01-31 00:22:57,"cutelittleturtle" [email protected] 写道:
https://hexo.io/zh-cn/docs/asset-folders.html
— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub, or mute the thread.