From cbba811a733a1a49213d8df13a7b598f1229212f Mon Sep 17 00:00:00 2001 From: Nicolas Goaziou Date: Thu, 28 Feb 2013 08:48:43 +0100 Subject: [PATCH] ox-html: Do not display title in body-only export * lisp/ox-html.el (org-html-inner-template): Remove title. (org-html-template): Add title. --- lisp/ox-html.el | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/lisp/ox-html.el b/lisp/ox-html.el index 4ccefe004..710009aba 100644 --- a/lisp/ox-html.el +++ b/lisp/ox-html.el @@ -1323,9 +1323,6 @@ CONTENTS is the transcoded contents string. INFO is a plist holding export options." (concat (format "
\n" (nth 1 org-html-divs)) - ;; Document title. - (format "

%s

\n" - (org-export-data (plist-get info :title) info)) ;; Table of contents. (let ((depth (plist-get info :with-toc))) (when depth (org-html-toc depth info))) @@ -1373,6 +1370,10 @@ holding export options." (or link-home link-up)))) ;; Preamble. (org-html--build-preamble info) + ;; Document title. + (let ((title (plist-get info :title))) + (when title + (format "

%s

\n" (org-export-data title info)))) ;; Document contents. contents ;; Postamble.