【发布时间】:2019-04-17 14:23:09
【问题描述】:
我是 Jekyll 的新手,目前正在学习 step by step 教程以熟悉堆栈。
我的问题是生成到 _site 目录的博客 html 文件最终位于嵌套文件夹中。这些文件夹与博客文章降价文件所需的日期格式相对应。
这是文件结构现在的视觉效果(仅包括相关目录和文件):
root/
|____ _posts/
| 2019-04-16-post-01.md
| 2019-04-16-post-02.md
|____ _site/
|__________2019/
|______________04/
|________________16/
| post-01.html
| post-02.html
|__________ assets/
| css/
| styles.css
|
|__________ blog.html
|__________ index.html
|
这意味着所有 html 使用的 css 文件路径对于博客文章都是不正确的。路径必须是../../../assets/css/styles.css
谁能解释一下为什么 Jekyll 会生成这样嵌套的博客文件以及分辨率可能是什么?
【问题讨论】:
标签: jekyll