aboutsummaryrefslogtreecommitdiff
path: root/publish.el
diff options
context:
space:
mode:
authorJacob Janzen <jjanzenn@proton.me>2024-04-14 20:32:46 -0500
committerJacob Janzen <jjanzenn@proton.me>2024-04-14 20:32:46 -0500
commit95e7517e5453cb5276f0ad3a74ee4be941da2fde (patch)
tree0a4a1fb7c25dfccdf1d4e2a8c50f8dbb8a841c61 /publish.el
parent3157d7d585c126e356fbb108e32b8ef38ea39d3a (diff)
:shrug:
Diffstat (limited to 'publish.el')
-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"