(let* ((file (org-publish--expand-file-name entry project))
(title (org-publish-find-title entry project))
(date (format-time-string "%Y-%m-%d %H:%M" (org-publish-find-date entry project)))
- (link (concat (file-name-sans-extension entry) ".html")))
- (with-temp-buffer
+ (link (concat (file-name-sans-extension entry) ".html"))
+ (tags (cadar (with-temp-buffer
+ (org-mode)
+ (insert-file-contents file)
+ (org-collect-keywords '("FILETAGS"))))))
+ (with-temp-buffer
(org-mode)
- (insert (format "* [[file:%s][%s]]\n" file title))
+ (insert (format "* [[file:%s][%s]] %s\n" file title tags))
;; add properties for `ox-rss.el' here
(org-set-property "RSS_PERMALINK" link)
(org-set-property "PUBDATE" date)
:publishing-function org-mustache-html-publish-to-html
:mustache-template ,(file-name-concat my-blog-mustache-folder "post.mustache")
:preparation-function my-blog-create-tags-files
- :exclude "html*\\|assets*\\|rss.org\\|index.org\\|sitemap.org"
+ :exclude "html*\\|assets*\\|rss.org\\|index.org\\|sitemap.org\\|.org~"
:html-content-class nil
:section-numbers nil
:with-toc nil