Image can't be displayed correctly #5323
Replies: 5 comments
-
|
Can anyone help me? I really need your help. |
Beta Was this translation helpful? Give feedback.
-
|
Thanks for your kindness. |
Beta Was this translation helpful? Give feedback.
-
|
i have problem with the image as well, <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 |
Beta Was this translation helpful? Give feedback.
-
|
I have the same problem. Really need help |
Beta Was this translation helpful? Give feedback.
-
|
Same here.... it generates with slashes in the wrong spots. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
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 = trueDownload a plugin using
npm install https://github.com/CodeFalling/hexo-asset-image --saveUsing relative path in markdown like this
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.
Beta Was this translation helpful? Give feedback.
All reactions