emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Nick Dokos <nicholas.dokos@hp.com>
To: Rasmus <rasmus@gmx.us>
Cc: nicholas.dokos@hp.com, emacs-orgmode@gnu.org
Subject: Re: Publish HTML Without Title
Date: Sat, 26 Nov 2011 22:31:26 -0500	[thread overview]
Message-ID: <11911.1322364686@alphaville.dokosmarshall.org> (raw)
In-Reply-To: Message from Rasmus <rasmus@gmx.us> of "Sat, 26 Nov 2011 02:23:53 GMT." <87r50vmxja.fsf@gmail.com>

Rasmus <rasmus@gmx.us> wrote:

> Hi,
> 
> I publish my website with Org. have defined my title in
> org-publish-project-alist under the :html-preamble.
> 
> However, it seems that recent Orgs have become 'smart' and now I don't
> know how to disable the publishing of title and I have the title printed
> twice.  As I recall this was not an issue before.
> 
> It seems to stem from org-html. el around 1358:
> 
> #+begin_src emacs-lisp
> 	;; begin wrap around body
> 	(insert (format "\n<div id=\"%s\">"
> 			;; FIXME org-export-html-content-div is obsolete since 7.7
> 			(or org-export-html-content-div
> 			    (nth 1 org-export-html-divs)))
> 		;; FIXME this should go in the preamble but is here so
> 		;; that org-infojs can still find it
> 		"\n<h1 class=\"title\">" title "</h1>\n"))
> #+end_src
> 
> Are there any known solutions to this at the moment?
> 

Thanks for providing your setup. I think you are right about the code and
I don't see any way to turn it off.

It looks like another band-aid to me (and org-html definitely has more
than its fair share of those), particularly given the comment about
org-infojs: presumably, after org-infojs is fixed to look for it in
the preamble, then the <h1> header can be deleted from the "content" div
(although anything I say about HTML should be taken with a large grain
of salt).

Next question: can't you get rid of the instance in your preamble at least
temporarily? Does it have to be in the "top" div?

Nick

PS. BTW, if you want to play the blame (git blame that is) game, here
are the relevant commits:

$ git blame -L1371,1378 lisp/org-html.el
5a373f64 (David Maus     2011-09-11 16:01:59 +0200 1371) 	(insert (format "\n<div id=\"%s\">"
8d25fdc7 (Bastien Guerry 2011-07-27 19:23:24 +0200 1372) 			;; FIXME org-export-html-content-div is obsolete since 7.7
5a373f64 (David Maus     2011-09-11 16:01:59 +0200 1373) 			(or org-export-html-content-div
8d25fdc7 (Bastien Guerry 2011-07-27 19:23:24 +0200 1374) 			    (nth 1 org-export-html-divs)))
8d25fdc7 (Bastien Guerry 2011-07-27 19:23:24 +0200 1375) 		;; FIXME this should go in the preamble but is here so
8d25fdc7 (Bastien Guerry 2011-07-27 19:23:24 +0200 1376) 		;; that org-infojs can still find it
8d25fdc7 (Bastien Guerry 2011-07-27 19:23:24 +0200 1377) 		"\n<h1 class=\"title\">" title "</h1>\n"))
70de130b (Bastien Guerry 2011-03-12 05:22:41 +0100 1378) 

  parent reply	other threads:[~2011-11-27  3:31 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-11-26  2:23 Publish HTML Without Title Rasmus
2011-11-26  7:40 ` Nick Dokos
2011-11-26 13:40   ` Rasmus Pank Roulund
2011-12-11 16:23     ` Bastien
2011-12-12  1:11       ` Rasmus
2011-11-27  3:31 ` Nick Dokos [this message]
2011-11-27 12:06   ` Rasmus Pank Roulund
2011-11-27 23:11     ` Nick Dokos

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=11911.1322364686@alphaville.dokosmarshall.org \
    --to=nicholas.dokos@hp.com \
    --cc=emacs-orgmode@gnu.org \
    --cc=rasmus@gmx.us \
    /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).