I think I read that I would have to create a separate template for pdf files, but a pdf file download would be a welcome feature. Just to get the column to line up correctly, fonts… Are their any Hugo Examples that have a button to render the page as a PDF? any hints?
This has been discussed before, please see this topic:
I don’t believe there is a way to do this automatically with Hugo. There are some default arguments being passed to helpers like Pandoc, but last time I checked I couldn’t find out to change them:
Once those can be changed then you should be able to include PDF generation arguments for Pandoc.
There are couple alternative options.
The easiest would probably be to create a wrapper script around Pandoc that adds these arguments. Unless you can get help from someone else with this, I don’t h…
Also perhaps you want to track the following GitHub issue:
opened 10:19AM - 13 Sep 19 UTC
See this tweet:
https://twitter.com/ThatPandaDev/status/1172342347213881344
…
>i miss downloadable docs :( prepping to write code on the plane and i shouldn't need to clone the whole @semanticui and @GoHugoIO repos, then figure out their doc build process... where'd "download as HTML" or PDF ever go to?
I totally agree with the above Tweet. "download as HTML" should be possible as-is if you're building using `relativeURLs=true` and have your URLs in order, so to speak. That could be something we also could investigate so we could do a static build as part of the release. But a simple PDF with an index would be nice ...