all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* Adding a class to html export of a list
@ 2012-12-08  3:16 Tony Day
  2012-12-09  6:46 ` Christian Moe
  0 siblings, 1 reply; 2+ messages in thread
From: Tony Day @ 2012-12-08  3:16 UTC (permalink / raw)
  To: emacs-orgmode@gnu.org

Hi,

I would like to add a class to a list on html export.  So, this:

#+BEGIN_EXAMPLE 
- [[#][Home]]
- [[#about][About]]
- [[#contact][Contact]]
#+END_EXAMPLE

becomes this:

#+BEGIN_EXAMPLE 
<ul class="nav">
<li><a href="#">Home</a>
</li>
<li><a href="#about">About</a>
</li>
<li><a href="#contact">Contact</a>
</li>
</ul>
#+END_EXAMPLE

I've been back and forth through the docs and I can't place a way to
do it, other than to drop back to raw html (and I love my plain
lists).

Any help appreciated.

tony

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

* Re: Adding a class to html export of a list
  2012-12-08  3:16 Adding a class to html export of a list Tony Day
@ 2012-12-09  6:46 ` Christian Moe
  0 siblings, 0 replies; 2+ messages in thread
From: Christian Moe @ 2012-12-09  6:46 UTC (permalink / raw)
  To: Tony Day; +Cc: emacs-orgmode@gnu.org

Hi,

Here's one: Do

(require 'org-special-blocks)

Then, you can use:

#+BEGIN_nav
- [[#][Home]]
- [[#about][About]]
- [[#contact][Contact]]
#+END_nav

Yours,
Christian

On 12/8/12 4:16 AM, Tony Day wrote:
> Hi,
>
> I would like to add a class to a list on html export.  So, this:
>
> #+BEGIN_EXAMPLE
> - [[#][Home]]
> - [[#about][About]]
> - [[#contact][Contact]]
> #+END_EXAMPLE
>
> becomes this:
>
> #+BEGIN_EXAMPLE
> <ul class="nav">
> <li><a href="#">Home</a>
> </li>
> <li><a href="#about">About</a>
> </li>
> <li><a href="#contact">Contact</a>
> </li>
> </ul>
> #+END_EXAMPLE
>
> I've been back and forth through the docs and I can't place a way to
> do it, other than to drop back to raw html (and I love my plain
> lists).
>
> Any help appreciated.
>
> tony
>
>
>

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

end of thread, other threads:[~2012-12-09  6:40 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-12-08  3:16 Adding a class to html export of a list Tony Day
2012-12-09  6:46 ` Christian Moe

Code repositories for project(s) associated with this external index

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

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.