insert file contents

This commit is contained in:
Jacob Janzen 2024-04-15 19:52:32 -05:00
parent 0cf864aa7e
commit 9d72db848b

View file

@ -33,6 +33,10 @@
"#+TITLE: " title "\n\n"
(org-list-to-subtree list)))
(defun get-file-contents (filename)
(with-temp-buffer
(insert-file-contents filename)
(buffer-string)))
(defun format-posts-rss-feed-entry (entry _style project)
(let* (
@ -51,7 +55,7 @@
title
link
pubdate
file)))
(get-file-contents file))))
(defun publish-posts-rss-feed (plist filename dir)
(if (equal "rss.org" (file-name-nondirectory filename))