emacs-orgmode
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[O] [ox-html] Multiple wraps around sections


From: Rasmus
Subject: [O] [ox-html] Multiple wraps around sections
Date: Sun, 16 Mar 2014 00:32:22 +0100
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3.50 (gnu/linux)

Hi,

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?

Note, my knowledge of HTML(5) & CSS is very limited so maybe I'm
overlooking something obvious here.

Thanks,
Rasmus

Footnotes: 
¹   http://usablica.github.io/progress.js/, http://emacs.sexy/

-- 
I feel emotional landscapes they puzzle me




reply via email to

[Prev in Thread] Current Thread [Next in Thread]