Skip to content
Snippets Groups Projects
Unverified Commit 6159033b authored by fauno's avatar fauno
Browse files

Merge branch 'hotfix/0.2.1'

parents 6c4e4dc2 6848ba3b
No related branches found
No related tags found
No related merge requests found
...@@ -40,6 +40,7 @@ pandoc: ...@@ -40,6 +40,7 @@ pandoc:
sheetsize: 'a4paper' sheetsize: 'a4paper'
imposition: true imposition: true
binder: true binder: true
covers_dir: assets/covers
flags: '--smart' flags: '--smart'
site_flags: '--toc' site_flags: '--toc'
...@@ -75,6 +76,8 @@ regular jekyll site build. ...@@ -75,6 +76,8 @@ regular jekyll site build.
* `sheetsize` is the page size for ready the print PDF * `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. **IMPORTANT**: As of version 0.1.0 the syntax of the config changed.
Please upgrade your `_config.yml` accordingly. Please upgrade your `_config.yml` accordingly.
...@@ -91,6 +94,17 @@ image on the epub result. ...@@ -91,6 +94,17 @@ image on the epub result.
cover: images/awesome.png 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 ### Paper sizes
For PDFs, each article can have a `papersize` and a `sheetsize`. The For PDFs, each article can have a `papersize` and a `sheetsize`. The
......
module JekyllPandocMultipleFormats module JekyllPandocMultipleFormats
VERSION = '0.2.0' VERSION = '0.2.1'
end end
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment