diff --git a/README.md b/README.md index 6d4d882daa655e34afeab02b42f202bcf56c52b0..8e90d99885684069df425903ab084bb351d838a1 100644 --- a/README.md +++ b/README.md @@ -40,6 +40,7 @@ pandoc: sheetsize: 'a4paper' imposition: true binder: true + covers_dir: assets/covers flags: '--smart' site_flags: '--toc' @@ -75,6 +76,8 @@ regular jekyll site build. * `sheetsize` is the page size for ready the print PDF +* `covers_dir` the directory where covers are stored + **IMPORTANT**: As of version 0.1.0 the syntax of the config changed. Please upgrade your `_config.yml` accordingly. @@ -91,6 +94,17 @@ image on the epub result. cover: images/awesome.png --- +For categories or posts without a cover specified, the plugin looks for +a PNG file inside the `covers_dir` whose file name will be the +category/post slug. + +Since 0.2.0, there's also support for PDF covers. If you have a PNG +cover, it will get converted to PDF. You can also provide a PDF cover +as long as it's the same file name as the PNG cover. + +* Category cover: `assets/covers/the_category_slug.png` +* PDF cover: `assets/covers/the_slug.pdf` + ### Paper sizes For PDFs, each article can have a `papersize` and a `sheetsize`. The diff --git a/lib/jekyll-pandoc-multiple-formats/version.rb b/lib/jekyll-pandoc-multiple-formats/version.rb index a47004e3578c9b866af907908d4939117c8dadad..e94d1ee6322f767c7d9b3196cfe5d286b3407adb 100644 --- a/lib/jekyll-pandoc-multiple-formats/version.rb +++ b/lib/jekyll-pandoc-multiple-formats/version.rb @@ -1,3 +1,3 @@ module JekyllPandocMultipleFormats - VERSION = '0.2.0' + VERSION = '0.2.1' end