Jekyll将所有文件生成到没有子文件夹的_站点

Jekyll将所有文件生成到没有子文件夹的_站点,jekyll,Jekyll,目前,当我的站点构建时,会在_站点目录中为各种资产(例如静态、上载等)创建子文件夹。我只想将所有文件转储到没有子文件夹的顶级目录中。因此,所有的图片和帖子等都会一起进入_站点,而不会出现子文件夹分离。看起来是这样的: _site - image01.jpg - home.html - 2017-05-24-sample-post.html - main.css - main.js 这可能吗?将所有文件放在根级别将使Jekyll直接在\u站点中生成相应的文件。在POST中使用

目前,当我的站点构建时,会在_站点目录中为各种资产(例如静态、上载等)创建子文件夹。我只想将所有文件转储到没有子文件夹的顶级目录中。因此,所有的图片和帖子等都会一起进入_站点,而不会出现子文件夹分离。看起来是这样的:

_site
  - image01.jpg
  - home.html
  - 2017-05-24-sample-post.html
  - main.css
  - main.js

这可能吗?

将所有文件放在根级别将使Jekyll直接在
\u站点中生成相应的文件。在POST中使用
permalinks
可能会有例外,但对于其他文件应该可以

例如:

$ jekyll new newsite --blank
$ touch image01.jpg
$ touch home.html
$ touch 2017-05-24-sample-post.html
$ touch main.css
$ touch main.js

$ tree
.
├── 2017-05-24-sample-post.html
├── about.md
├── _config.yml
├── Gemfile
├── Gemfile.lock
├── home.html
├── image01.jpg
├── index.md
├── main.css
├── main.js
└── _posts
    └── 2017-06-12-welcome-to-jekyll.markdown

1 directory, 11 files
$jekyll build

├── 2017-05-24-sample-post.html
├── about.md
├── _config.yml
├── Gemfile
├── Gemfile.lock
├── home.html
├── image01.jpg
├── index.md
├── main.css
├── main.js
├── _posts
│   └── 2017-06-12-welcome-to-jekyll.markdown
└── _site
    ├── 2017-05-24-sample-post.html
    ├── about
    │   └── index.html
    ├── assets
    │   └── main.css
    ├── feed.xml
    ├── home.html
    ├── image01.jpg
    ├── index.html
    ├── jekyll
    │   └── update
    │       └── 2017
    │           └── 06
    │               └── 12
    │                   └── welcome-to-jekyll.html
    ├── main.css
    └── main.js

9 directories, 21 files
查看如何在根级别创建新文件