The following configuration worked in pre 0.146.0 versions. I could define specific baseof templates for different output formats. This now seems to be broken.
For my home page index.html
Hugo generated html
and for index.print.html
Hugo generated print
.
Since 0.146.0 both files contain html
.
[outputs]
home = ['html', 'rss', 'print']
section = ['html', 'rss', 'print']
page = ['html', 'rss', 'print']
[outputFormats]
[outputFormats.print]
name= 'print'
baseName = 'index.print'
isHTML = true
mediaType = 'text/html'
permalinkable = false
noUgly = true
layouts/_default/baseof.html
html
layouts/_default/baseof.print.html
print
I also tried other combinations of baseof.html.html
, baseof.print
to no avail.