[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [O] [ox-html] Multiple wraps around sections
From: |
Nicolas Goaziou |
Subject: |
Re: [O] [ox-html] Multiple wraps around sections |
Date: |
Sun, 16 Mar 2014 11:01:53 +0100 |
Hello,
Rasmus <address@hidden> writes:
> I'm trying to make a personal website with ox-html and ox-publish. In
> terms of output I am looking for something like:
>
> #+begin_src html
> <section id="CUSTOM_ID" class="HTML_CONTAINER_CLASS">
> <div class="indent-wrapper">
> <h2>Section title</h2>
> my text
> </div>
> </section>
> #+end_src
>
> This seems to be how these fancy pages get colored boxes and indented
> text¹. . .
>
> I can almost get it with Org now using org-html-container-element
> (:html-container in ox-html).
>
> #+begin_src html
> <section id="outline-container-CUSTOM_ID" class="outline-2
> HTML_CONTAINER_CLASS">
> <h2 id="CUSTOM_ID"><a id="sec-2"></a>Section title</h2>
> <div class="outline-text-2" id="text-CUSTOM_ID">
> my text
> </div>
> </section>
> #+end_src
>
> Is there any way I can easily get an /extra/ container around my
> sections? Or should I try to hack together a patch for multiple
> containers myself?
Did you try using a filter (e.g., `org-export-filter-headline-functions')?
Regards,
--
Nicolas Goaziou