summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--ennu-html.el18
1 files changed, 10 insertions, 8 deletions
diff --git a/ennu-html.el b/ennu-html.el
index 28a4a6b..bf7cb0f 100644
--- a/ennu-html.el
+++ b/ennu-html.el
@@ -246,14 +246,16 @@
translations
", ")))
;; Tags
- (format "<p>Tags: %s</p>"
- (mapconcat
- (lambda (tag)
- (replace-regexp-in-string
- "<a " "<a class=\"p-category\" "
- (ennu-export-tag (ennu-add-tongue-suffix tag (plist-get info :language))
- tag (org-export-backend-name (plist-get info :back-end)))))
- tags ", "))
+ (when-let (tags (plist-get info :filetags))
+ (format "<p>Tags: %s</p>"
+ (mapconcat
+ (lambda (tag)
+ (replace-regexp-in-string
+ "<a " "<a class=\"p-category\" "
+ (ennu-export-tag (ennu-add-tongue-suffix tag (plist-get info :language))
+ tag (org-export-backend-name (plist-get info :back-end)))))
+ tags
+ ", ")))
;; Summary
(format "<div class=\"p-summary\">%s</div>"
(org-export-data (plist-get info :summary) info))