Login  Register

Re: Small changes to default HTML5 templates

Posted by mojavelinux on Apr 17, 2019; 8:29pm
URL: https://discuss.asciidoctor.org/Small-changes-to-default-HTML5-templates-tp6851p6858.html

Matt,

In regards to your question:

> I had been trying only to use _toc.html.slim, but now I see why that wouldn't work.

That seems to be a residual file. The template you'd need to override is outline.html.slim (which can also be named block_outline.html.slim as the block_ prefix is optional).

The files that are prefixed with underscore are specific to how the slim templates were implemented in the backends repository. If you're starting from scratch, you don't have to make use of these partials...and frankly you would be better off because then you aren't coupled to how it was done there.

Cheers,

-Dan

On Wed, Apr 17, 2019 at 7:20 AM MattBlissett [via Asciidoctor :: Discussion] <[hidden email]> wrote:
Thanks Dan (and Mark), that's exactly what I needed.

> You only need to use the templates for the nodes you want to change.

I had been trying only to use _toc.html.slim, but now I see why that wouldn't work.

I've used a bit of both methods and am very pleased with the result.  Anyone finding this question can see the source.


If you reply to this email, your message will be added to the discussion below:
http://discuss.asciidoctor.org/Small-changes-to-default-HTML5-templates-tp6851p6856.html
To start a new topic under Asciidoctor :: Discussion, email [hidden email]
To unsubscribe from Asciidoctor :: Discussion, click here.
NAML


--
Dan Allen | @mojavelinux | https://twitter.com/mojavelinux