Browse Source

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.
Bastien Guerry 6 years ago
parent
commit
e100bf91c4
1 changed files with 1 additions and 2 deletions
  1. 1 2
      lisp/ox-html.el

+ 1 - 2
lisp/ox-html.el

@@ -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.