ox-html.el (org-html-template): Always include the title.

* ox-html.el (org-html-template): Always include the title as <h1
class="title"></h1>, even when there is no title, as org-info.js
needs it.

Thanks to Henry Atting for reporting this.
This commit is contained in:
Bastien Guerry 2013-03-08 16:52:33 +01:00
parent a68ae08422
commit e100bf91c4
1 changed files with 1 additions and 2 deletions

View File

@ -1593,8 +1593,7 @@ holding export options."
(format "<div id=\"%s\">\n" (nth 1 org-html-divs))
;; Document title.
(let ((title (plist-get info :title)))
(when title
(format "<h1 class=\"title\">%s</h1>\n" (org-export-data title info))))
(format "<h1 class=\"title\">%s</h1>\n" (org-export-data (or title "") info)))
contents
"</div>\n"
;; Postamble.