emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: John Kitchin <jkitchin@andrew.cmu.edu>
To: Christian Wittern <cwittern@gmail.com>
Cc: Org Mode Mailing List <emacs-orgmode@gnu.org>
Subject: Re: HTML export without org title as H1?
Date: Fri, 10 Jun 2016 09:17:58 -0400	[thread overview]
Message-ID: <m2oa79qj21.fsf@Johns-MacBook-Air.local> (raw)
In-Reply-To: <575AAC94.1040303@gmail.com>

I am not sure I follow what you want. You can get rid of the title with
the option:  title:nil

This:
#+TITLE: Kanripo 漢籍リポジトリ
#+OPTIONS:   num:nil toc:nil html-style:nil

#+begin_html
<div class="navbar navbar-inverse navbar-fixed-top">
   <div class="navbar-inner">
     <div class="container">
...
#+end_html

** Here starts the first real head

..
and so on

exports to this for me (just the body export).

<div class="navbar navbar-inverse navbar-fixed-top">
   <div class="navbar-inner">
     <div class="container">
...

<div id="outline-container-orgheadline1" class="outline-2">
<h2 id="orgheadline1">Here starts the first real head</h2>
<div class="outline-text-2" id="text-orgheadline1">
<p>
..
and so on
</p>
</div>
</div>



Christian Wittern writes:

> Hello org users,
>
> I am trying to export an org file to the "content" part of a HTML file. 
> Using header lines and inline html blocks, I basically succeeded in 
> constructing it the way I need it.  However, there is still one stumbling 
> block: It seems that it is hardcoded to use the title of the org file as the 
> first H1 element. This breaks my file, so I would like to suppress that, 
> together with the first <div> element.  Does anybody know how to achieve 
> that?  Or are there better ways to achieve this?
> What I have so far basically looks like this:
>
> #+TITLE: Kanripo 漢籍リポジトリ
> #+SETUPFILE: kanripo.blog.setup
> #+OPTIONS:   num:nil toc:nil html-style:nil
>
> #+begin_html
> <div class="navbar navbar-inverse navbar-fixed-top">
>    <div class="navbar-inner">
>      <div class="container">
> ...
> #+end_html
>
> ** Here starts the first real head
>
> ..
> and so on
>
> Any help appreciated,
>
> Christian


-- 
Professor John Kitchin
Doherty Hall A207F
Department of Chemical Engineering
Carnegie Mellon University
Pittsburgh, PA 15213
412-268-7803
@johnkitchin
http://kitchingroup.cheme.cmu.edu

  reply	other threads:[~2016-06-10 13:18 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-06-10 12:03 HTML export without org title as H1? Christian Wittern
2016-06-10 13:17 ` John Kitchin [this message]
2016-06-10 23:06   ` Christian Wittern

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=m2oa79qj21.fsf@Johns-MacBook-Air.local \
    --to=jkitchin@andrew.cmu.edu \
    --cc=cwittern@gmail.com \
    --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).