I have created a custom HTML Output Format that is optimized for printers. I intend to use this to create printable recipes for the recipe section of my website.
Here is the relevant properties from my config.yaml
file …
outputFormats:
printFormat:
name: print
path: /print
mediaType: text/html
baseName: index
isPlainText: false
rel: alternate
isHTML: false
noUgly: true
permalinkable: false
outputs:
page:
- HTML
- print
NOTE: Enabling this feature required that I enable it for all pages
Also, I have added the following to my <theme>/layouts
directory:
<theme>/layouts/_default/baseof.print.html
<theme>/layouts/recipes/single.print.html
Is there some way to limit the generation of the custom output format to a specific section of the site (i.e. /content/recipes
) … or to disable it in others?