From mboxrd@z Thu Jan 1 00:00:00 1970 From: Rasmus Subject: Re: How to omit h1 title heading in HTML export? Date: Tue, 04 Jun 2013 19:24:06 +0200 Message-ID: <87ppw13i2x.fsf@pank.eu> References: Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:57252) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UjuyA-0005WY-FD for emacs-orgmode@gnu.org; Tue, 04 Jun 2013 13:24:34 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Ujuy5-0000oi-Q9 for emacs-orgmode@gnu.org; Tue, 04 Jun 2013 13:24:26 -0400 Received: from plane.gmane.org ([80.91.229.3]:55360) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Ujuy5-0000oP-JK for emacs-orgmode@gnu.org; Tue, 04 Jun 2013 13:24:21 -0400 Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1Ujuy4-0003um-5n for emacs-orgmode@gnu.org; Tue, 04 Jun 2013 19:24:20 +0200 Received: from ip-pool-133.iue.it ([192.167.90.133]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Tue, 04 Jun 2013 19:24:20 +0200 Received: from rasmus by ip-pool-133.iue.it with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Tue, 04 Jun 2013 19:24:20 +0200 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: emacs-orgmode@gnu.org "*" writes: > Hey Basile > Thanks for your reply! > > Yes, the suggestion helps :-) > A blank TITLE option seems to produce some empty tags like so: >

> > And maybe there are also some jquery fixes, for instance... > $("#content h1:first-child").hide(); > > Sometimes tricks are fun, > but I guess one of my questions was: Do all documents generated by > HTML export contain the

blabla

markup? Yes seems like it. check ox-html.el and org-html--build-meta-info. If you are very unhappy with blank title solution proposed by Bastien you could use a filter. Here's a filter I use for headlines; you can easily adapt it to your case: (defun rasmus/org-html-ignore-title-if-present (string backend info) "Strip title if it's already there for html." (when (and (org-export-derived-backend-p backend 'html) (string-match "h1 class=\"mytitle\"" string)) (replace-regexp-in-string "

.*?

" "" string))) (add-to-list 'org-export-filter-final-output-functions 'rasmus/org-html-ignore-title-if-present) -- I hear there's rumors on the, uh, Internets. . .