emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* [ox-html] Multiple wraps around sections
@ 2014-03-15 23:32 Rasmus
  2014-03-16 10:01 ` Nicolas Goaziou
       [not found] ` <m2wqfuy2yf.fsf@uio.no>
  0 siblings, 2 replies; 6+ messages in thread
From: Rasmus @ 2014-03-15 23:32 UTC (permalink / raw)
  To: emacs-orgmode

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

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2014-03-16 14:21 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-03-15 23:32 [ox-html] Multiple wraps around sections Rasmus
2014-03-16 10:01 ` Nicolas Goaziou
     [not found] ` <m2wqfuy2yf.fsf@uio.no>
2014-03-16 13:01   ` Rasmus
2014-03-16 13:23     ` Nicolas Goaziou
2014-03-16 14:02       ` Rasmus
2014-03-16 14:21         ` Nicolas Goaziou

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).