From: Christian Moe <mail@christianmoe.com>
To: Tony Day <zygomega@gmail.com>
Cc: "emacs-orgmode@gnu.org" <emacs-orgmode@gnu.org>
Subject: Re: Adding a class to html export of a list
Date: Sun, 09 Dec 2012 07:46:48 +0100 [thread overview]
Message-ID: <50C433D8.1080304@christianmoe.com> (raw)
In-Reply-To: <1531E22F-8B1D-4049-BD0B-AC3B0320A2AE@gmail.com>
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
>
>
>
prev parent reply other threads:[~2012-12-09 6:40 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-12-08 3:16 Adding a class to html export of a list Tony Day
2012-12-09 6:46 ` Christian Moe [this message]
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=50C433D8.1080304@christianmoe.com \
--to=mail@christianmoe.com \
--cc=emacs-orgmode@gnu.org \
--cc=zygomega@gmail.com \
/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).