Closed serend1p1ty closed 5 years ago
Can anyone help me? I really need your help.
Thanks for your kindness.
i have problem with the image as well, image is being generate with the '/' infront of it. thus file not found error is thrown.
<img src="/blog/2018/11/26/xxxx-xxx/tT.gif">
But it should be
<img src="blog/2018/11/26/xxxx-xxx/tT.gif">
configs:
url: url/blog/
note here, only the url is 'url/blog', but the folder structure is just root.
root: /
permalink: :year/:month/:day/:title/
permalink_defaults:
new_post_name: :title.md # File name of new posts
default_layout: post
titlecase: false # Transform title into titlecase
external_link: true # Open external links in new tab
filename_case: 0
render_drafts: false
post_asset_folder: true
relative_link: true
future: true
highlight:
enable: true
line_number: true
auto_detect: false
I have the same problem. Really need help
Same here.... it generates with slashes in the wrong spots.
I am new to HEXO. My blog has a strange problem now: Images can't be displayed correctly, and the reason I have found is the images have incorrect path. According to the results I have found in Google, I got a solution:
Set
post_asset_folder = true
Download a plugin using
npm install https://github.com/CodeFalling/hexo-asset-image --save
Using relative path in markdown like this
![](test.png)
But the problem of incorrect image path still haven't be solved, because I found there is a prefix in every image path. Just like this. What a strange prefix
yoursite.com
! Can anyone help me? I will be very grateful. Here is my configuration of HEXO.