Interfector
Interfector

Reputation: 1898

Keep files near generated files in Jekyll

I have a Jekyll blog and some of the raw posts have some additional files at the same level with the markdown file. For example:

. ├── _posts ├── first-post ├── 2007-10-29-first-post.md └── download.zip

How can I and up with a generated structure such as

. ├── _sites ├── first-post ├── index.html └── download.zip

The download.zip file needs to be in the same location as its dependent post (I cannot use any includes or other redirect tricks)

Upvotes: 0

Views: 221

Answers (1)

Abdul Hadi
Abdul Hadi

Reputation: 1228

Try this jekyll-postfiles which is:

A Jekyll plugin that copies static files from the _posts to the _site folder

Upvotes: 1

Related Questions