【发布时间】:2015-08-31 21:35:26
【问题描述】:
首先,感谢 Hexo。这是我的问题:
我在 Hexo 配置文件中将post_asset_folder 设置为true。然后我运行:
$ hexo new first.
然后:
$ ls source/_posts/
first/first.md hello-world.md
我在source/_posts/first 中添加了一张名为pic.png 的图片,并在source/_posts/first.md 中写了如下内容:
title: first
date: 2015-06-16 13:42:29
tags:
---
picture blow ^_^

然后:
$ hexo g
$ hexo s
我打开http://0.0.0.0:4000/,但我看不到pic.png的内容。
我检查了文件夹public/2015/06/16/first/。我发现文件夹 public/2015/06/16/ 和文件夹 source/_posts/ 之间存在一些差异。
- 文件夹结构
public/2015/06/16/
.
└── public/2015/06/16/
├── first
│ ├── pic.png
│ └── first.md
└── hello-world
└── hello-world.md
- 文件夹结构
source/_posts/
.
└── source/_posts/
├── first
│ ├── first
│ │ └── pic.png
│ └── first.md
└── hello-world
└── hello-world.md
如何统一路径格式,使markdowm 和index.html 可以得到相同的路径。
【问题讨论】:
标签: structure directory markdown hexo