From mboxrd@z Thu Jan 1 00:00:00 1970 From: Nick Dokos Subject: Re: Publish HTML Without Title Date: Sat, 26 Nov 2011 22:31:26 -0500 Message-ID: <11911.1322364686@alphaville.dokosmarshall.org> References: <87r50vmxja.fsf@gmail.com> Reply-To: nicholas.dokos@hp.com Return-path: Received: from eggs.gnu.org ([140.186.70.92]:52603) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RUVSm-0001B2-JG for emacs-orgmode@gnu.org; Sat, 26 Nov 2011 22:31:33 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1RUVSk-00064N-Tv for emacs-orgmode@gnu.org; Sat, 26 Nov 2011 22:31:32 -0500 Received: from g5t0008.atlanta.hp.com ([15.192.0.45]:8735) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RUVSk-00063r-OX for emacs-orgmode@gnu.org; Sat, 26 Nov 2011 22:31:30 -0500 In-Reply-To: Message from Rasmus of "Sat, 26 Nov 2011 02:23:53 GMT." <87r50vmxja.fsf@gmail.com> List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: Rasmus Cc: nicholas.dokos@hp.com, emacs-orgmode@gnu.org Rasmus 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
" > ;; 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

" title "

\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

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
" 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

" title "

\n")) 70de130b (Bastien Guerry 2011-03-12 05:22:41 +0100 1378)