TOC placement with Awestruct

Posted by fleurystephane on
URL: https://discuss.asciidoctor.org/TOC-placement-with-Awestruct-tp546.html

Hi!

I'm trying to display the toc content in a particular place.
I've my page.adoc with toc(s) attributes specified and I want to display the toc block at the right of the page.(like the excellent guide Arquillian site)

I use the layout page of Awestruct and the ~ content way to display the generated text from page.adoc.

My code :

my layout base-souscription.html.haml
...
 %body
    .navbar.navbar-fixed-top
      .navbar-inner
        .container
          %a.brand{ :href=>"/" } Home
    .container
      .row
        .span9
          ~ content
        .span3
          Here I'd like the toc of the current page...
...

my adoc file

= Souscription
Just me
:awestruct-layout: base-souscription
:toc:
:toc-placement: manual
:toc-title: Questions

toc::[]

== Chapter 1
the first chapter..

== Chapter 2
The second chapter

Is there a solution?
Thanks

Stéphane