Small changes to default HTML5 templates
Posted by
MattBlissett on
Apr 16, 2019; 6:22pm
URL: https://discuss.asciidoctor.org/Small-changes-to-default-HTML5-templates-tp6851.html
Hi,
I'm using Asciidoctor (and po4a) to build a multilingual document system.
The default styling looks great, but I'd like to make some small changes, and I'm not sure of the best approach.
The templates in the asciidoctor-backends repository aren't maintained – the slim/html5 template throws an error on "image::name.jpg[]", so that's probably not what I should use. (I also wasn't sure which of eml, haml or slim to choose.)
What's the recommended way to make minor changes to the existing html5 template?
Before I realized the problem with the images, I edited the slim templates to generate
this with a logo and placeholder for some links above the table of contents. The "This document is also available in PDF ... español, français" part is generated with a custom extension that looks at what else is in
the repository, ideally I'd also like that to be outside the document (above the TOC) as well. Can a template call an extension for this?
Thanks :)