2016-06-28 32 views
0

我想將_posts中發佈的文章文件夾中的任何靜態文件(圖像,PDF等)複製到該文章的HTML版本所在的文件夾中,裏面有_site將靜態文件從一個Jekyll文章複製到已發佈的站點

比方說,我有這樣的結構:

_posts/ 
    2016/ 
    06/ 
     09-so-long-cloudflare/ 
     2016-06-09-so-long-cloudflare-and-thanks-for-all-the-fissh.md 
     cloudflare-logo.png 
     performance-report-sample.pdf 

的永久鏈接我的傑奇設置:

# Permalinks 
permalink: /:year/:month/:day/:title/ 

我想產生這樣的網站:

2016/ 
    06/ 
    09/ 
     so-long-cloudflare-and-thanks-for-all-the-fissh/ 
     index.html 
     cloudflare-logo.png 
     performance-report-sample.pdf 

我發現this plugin應該這樣做,但我不能讓它工作。我得到這個錯誤:

jekyll 3.1.6 | Error: undefined method `name' for #<Jekyll::Document:0x007fb7a0892b50> 

有什麼想法嗎?

謝謝!

回答

相關問題