aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--publish.el7
1 files changed, 6 insertions, 1 deletions
diff --git a/publish.el b/publish.el
index c425e25..3f9d563 100644
--- a/publish.el
+++ b/publish.el
@@ -15,7 +15,6 @@
(require 'org)
(require 'ox-html)
-(require 'ox-rss)
(defun my/org-publish-org-sitemap-format (entry style project)
(cond ((not (directory-name-p entry))
@@ -52,6 +51,12 @@ project."
link
pubdate)))
+(defun publish-posts-rss-feed (plist filename dir)
+ "Publish PLIST to RSS when FILENAME is rss.org.
+DIR is the location of the output."
+ (if (equal "rss.org" (file-name-nondirectory filename))
+ (org-rss-publish-to-rss plist filename dir)))
+
(setq org-publish-project-alist
'(
("org-notes"