mirror of
https://git.savannah.gnu.org/git/emacs/org-mode.git
synced 2024-08-24 18:02:53 +00:00
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.
This commit is contained in:
parent
9bc7f70639
commit
cbba811a73
|
@ -1323,9 +1323,6 @@ CONTENTS is the transcoded contents string. INFO is a plist
|
||||||
holding export options."
|
holding export options."
|
||||||
(concat
|
(concat
|
||||||
(format "<div id=\"%s\">\n" (nth 1 org-html-divs))
|
(format "<div id=\"%s\">\n" (nth 1 org-html-divs))
|
||||||
;; Document title.
|
|
||||||
(format "<h1 class=\"title\">%s</h1>\n"
|
|
||||||
(org-export-data (plist-get info :title) info))
|
|
||||||
;; Table of contents.
|
;; Table of contents.
|
||||||
(let ((depth (plist-get info :with-toc)))
|
(let ((depth (plist-get info :with-toc)))
|
||||||
(when depth (org-html-toc depth info)))
|
(when depth (org-html-toc depth info)))
|
||||||
|
@ -1373,6 +1370,10 @@ holding export options."
|
||||||
(or link-home link-up))))
|
(or link-home link-up))))
|
||||||
;; Preamble.
|
;; Preamble.
|
||||||
(org-html--build-preamble info)
|
(org-html--build-preamble info)
|
||||||
|
;; Document title.
|
||||||
|
(let ((title (plist-get info :title)))
|
||||||
|
(when title
|
||||||
|
(format "<h1 class=\"title\">%s</h1>\n" (org-export-data title info))))
|
||||||
;; Document contents.
|
;; Document contents.
|
||||||
contents
|
contents
|
||||||
;; Postamble.
|
;; Postamble.
|
||||||
|
|
Loading…
Reference in a new issue