aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorArun Isaac2020-07-31 03:07:37 +0530
committerArun Isaac2020-07-31 03:07:37 +0530
commit99b451aa472ede0d64ab8a5bb97382356c4d3353 (patch)
tree95653becfa192a6d0eab8de48b442b34a30b63d1
parent87058b55a053fea2fb40e886f134a5f263f6b90a (diff)
downloadennum-99b451aa472ede0d64ab8a5bb97382356c4d3353.tar.gz
ennum-99b451aa472ede0d64ab8a5bb97382356c4d3353.tar.lz
ennum-99b451aa472ede0d64ab8a5bb97382356c4d3353.zip
Specify post title explicitly in the link description.
Index generation uses the html backend, and cannot access the special post link of the ennum-html backend. * ennum.el (ennum-publish-index): During index generation, specify post title explicitly in the link description.
-rw-r--r--ennum.el2
1 files changed, 1 insertions, 1 deletions
diff --git a/ennum.el b/ennum.el
index bcc9019..0619e04 100644
--- a/ennum.el
+++ b/ennum.el
@@ -226,7 +226,7 @@ non-nil, include directories in the output."
(insert (format "#+LANGUAGE: %s\n" tongue))
(insert "#+OPTIONS: num:nil toc:nil\n\n")
(seq-do (lambda (post)
- (insert (format "* [[post:%s]]\n" (ennum-post-slug post)))
+ (insert (format "* [[post:%s][%s]]\n" (ennum-post-slug post)))
(insert (format-time-string "/%b %e, %Y/\n\n" (ennum-post-date post)))
(when-let ((thumbnail (ennum-post-thumbnail post)))
(insert (format "[[thumbnail:%s]]\n\n" thumbnail)))