Nauja / pandoc-cookbook-template

Pandoc template for generating Just One Cookbook themed recipes

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

pandoc-cookbook-template

Pandoc test GitHub license

Templates for generating beautiful printable recipes from YAML metadata.

Usage example

Generate a Just One Cookbook themed recipe from bibimbap.yaml example:

pandoc \
  -o example/bibimbap.html \
  --template templates/justonecookbook/index.html \
  --css templates/justonecookbook/index.css \
  --metadata image=example/bibimbap.jpg \
  --self-contained \
  example/bibimbap.yaml

This will generate the following HTML document:

Bibimbap Preview

Alternatively, if you want the Cuisine AZ template:

pandoc \
  -o example/bibimbap.html \
  --template templates/cuisineaz/index.html \
  --css templates/cuisineaz/index.css \
  --metadata image=example/bibimbap.jpg \
  --self-contained \
  example/bibimbap.yaml

This will generate the following HTML document:

Bibimbap Preview

You can generate sandbox.yaml - a recipe used to showcase all things you can write and some specific cases - the same way:

pandoc \
  -o example/sandbox.html \
  --template templates/<template>/index.html \
  --css templates/<template>/index.css \
  --self-contained \
  example/sandbox.yaml

License

Licensed under the MIT License.

About

Pandoc template for generating Just One Cookbook themed recipes

License:MIT License


Languages

Language:HTML 100.0%