               :sitemap-sort-files 'anti-chronologically
               :sitemap-function 'duncan/org-publish-sitemap-archive
               :sitemap-format-entry 'duncan/org-publish-sitemap-entry)
+
+        (list "archive-for-rss"
+              :base-directory "./posts"
+              :recursive t
+              :exclude (regexp-opt '("posts.org" "archive.org" "rss.org"))
+              :base-extension "org"
+              :publishing-directory "./public"
+              :publishing-function 'ignore
+              :auto-sitemap t
+              :sitemap-style 'list
+              :sitemap-filename "rss.org"
+              :sitemap-sort-files 'anti-chronologically
+              :sitemap-function 'duncan/org-publish-rss
+              :sitemap-format-entry 'duncan/org-publish-rss-entry)
+
+        (list "rss"
+              :base-directory "./posts"
+              :recursive t
+              :exclude "."
+              :include '("rss.org")
+              :base-extension "org"
+              :publishing-directory "./public"
+              :publishing-function 'duncan/org-rss-publish-to-rss
+              :html-link-home "http://duncan.codes/"
+              :html-link-use-abs-url t)
 
         (list "site"
               :base-directory "./"

             :sitemap-function 'duncan/org-publish-sitemap-latest-posts
             :sitemap-format-entry 'duncan/org-publish-sitemap-entry)

        (list "archive-rss"
              :base-directory "./posts"
              :recursive t
              :exclude (regexp-opt '("posts.org" "archive.org"))
              :base-extension "org"
              :publishing-directory "./public"
              :publishing-function 'duncan/org-rss-publish-to-rss


(defun duncan/org-rss-publish-to-rss (plist filename pub-dir)
  "Wrap org-rss-publish-to-rss with PLIST and PUB-DIR, publishing only when FILENAME is 'archive.org'."
  (if (equal "rss.org" (file-name-nondirectory filename))
      (org-rss-publish-to-rss plist filename pub-dir)))

; Project definition
