Nick Dokos <nicholas.do...@hp.com> writes: > Rasmus <ras...@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? >> > > I spent 10 minutes trying to recreate the problem, and decided that I > have no idea what you are talking about. > > So in my role as the official and perpetual nag on this list: can you > please post your org-publish-project-list -or at least the relevant > subset- > and (unless, as I suspect, the org file is completely trivial) an ECM > exhibiting the problem?
In my publish file I have (Warning: 'destructive' example that setq rather than add-to-list). #+begin_src emacs-lisp (setq org-publish-project-alist '( ("test" :base-directory "~/test" :publishing-directory "~/test" :html-preamble " <div id=\"top\"> <h1 class=\"title\">%t</h1> <div id=\"menu\"> <a href=\"index.html\" >Home</a> | <a href=\"emacs.html\" >Emacs</a> | </div> </div>" ))) #+end_src Now use ~/test/index.org #+begin_src org #+TITLE: TEST * First head 1. point 2. two 3. three #+end_src Publish it as HTML. Here is relevant snips from the sourced code. #+begin_src html [...] <head> <title>TEST</title> [....] <body> <div id="preamble"> <div id="top"> <h1 class="title">TEST</h1> <div id="menu"> <a href="index.html" >Home</a> | <a href="emacs.html" >Emacs</a> | </div> </div> </div> <div id="content"> <h1 class="title">TEST</h1> [...] #+end_src Note, I never asked for the second title and this is the one I want to go away, but I don't know how. As I pointed out in the previous case, it seems that it may be hardcoded, but I don't know. I use Emacs-bzr 106282 and Org-git of 20111126. –Rasmus -- Sent from my Emacs