First of all, thanks Hexo. Here is my question:
I set post_asset_folder
to true
in the Hexo configuration file. Then I run:
$ hexo new first
.
then:
$ ls source/_posts/
first/ first.md hello-world.md
I added a pic named pic.png
into source/_posts/first
and wrote something in source/_posts/first.md
like the following:
title: first
date: 2015-06-16 13:42:29
tags:
---
picture blow ^_^
![pic](first/pic.png)
Then:
$ hexo g
$ hexo s
I open http://0.0.0.0:4000/
, but i coundn't see the content of pic.png
.
I checked the folder public/2015/06/16/first/
. I found there is some diffrience between folder public/2015/06/16/
and folder source/_posts/
.
- structure of folder
public/2015/06/16/
.
└── public/2015/06/16/
├── first
│ ├── pic.png
│ └── first.md
└── hello-world
└── hello-world.md
- structure of folder
source/_posts/
.
└── source/_posts/
├── first
│ ├── first
│ │ └── pic.png
│ └── first.md
└── hello-world
└── hello-world.md
How can i unify the path format that i could get same path in markdowm
and index.html
.
in your post, just use pic.png, but not first/pic.png
hexo will put the files in asset folder with html file together