easybook
easybook copied to clipboard
Unable to find template "copyright.twig"
[Twig_Error_Loader]
Unable to find template "copyright.twig" (looked into:
/Users/mrichman/github/easybook/app/Resources/Themes/Clean/Pdf/Templates,
/Users/mrichman/github/easybook/app/Resources/Themes,
/Users/mrichman/github/easybook/app/Resources/Themes/Base/Pdf/Templates).
@mrichman considering your error message, I guess that your config.yml
file looks like this:
book:
title: "..."
# ...
contents:
- { element: cover }
- { element: toc }
- { element: copyright }
# ...
The problem is that there is no copyright
element. You have two options to fix this error. First, you could use the license
element without any custom content. This will add a copyright license to your book:
book:
title: "..."
# ...
contents:
- { element: cover }
- { element: toc }
- { element: license }
# ...
Moreover, you can define your own custom license text by adding a content to the license
element:
book:
title: "..."
# ...
contents:
- { element: cover }
- { element: toc }
- { element: license, content: "my_custom_license_file.md" }
# ...
Add anything you want to the Markdown file associated with the license
element and it will be included in your published book.