emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Rasmus <rasmus@gmx.us>
To: emacs-orgmode@gnu.org
Subject: [ox-html] Multiple wraps around sections
Date: Sun, 16 Mar 2014 00:32:22 +0100	[thread overview]
Message-ID: <87eh233unt.fsf@gmx.us> (raw)

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	other threads:[~2014-03-15 23:32 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-03-15 23:32 Rasmus [this message]
2014-03-16 10:01 ` [ox-html] Multiple wraps around sections 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

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.orgmode.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87eh233unt.fsf@gmx.us \
    --to=rasmus@gmx.us \
    --cc=emacs-orgmode@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).