Browse Source

org-e-publish: Fix type mismatch error

* contrib/lisp/org-e-publish.el (org-e-publish-find-title): Store
  title as a string, not as a secondary string.
Nicolas Goaziou 5 years ago
parent
commit
36306bae4e
1 changed files with 2 additions and 1 deletions
  1. 2 1
      contrib/lisp/org-e-publish.el

+ 2 - 1
contrib/lisp/org-e-publish.el

@@ -864,7 +864,8 @@ Default for SITEMAP-FILENAME is 'sitemap.org'."
      (with-current-buffer buffer
        (org-mode)
        (setq title
-	     (or (plist-get (org-export-get-environment) :title)
+	     (or (org-element-interpret-data
+		  (plist-get (org-export-get-environment) :title))
 		 (file-name-nondirectory (file-name-sans-extension file)))))
      (unless visiting (kill-buffer buffer))
      (org-e-publish-cache-set-file-property file :title title)