aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJacob Janzen <jjanzenn@proton.me>2024-04-15 19:52:32 -0500
committerJacob Janzen <jjanzenn@proton.me>2024-04-15 19:52:32 -0500
commit9d72db848b9bcdd734df7f0df053925ead23abf5 (patch)
treea0f76dd1213e0566b194bfb8ad21a0bd71251e34
parent0cf864aa7e9b7ff05c3befb53800b984e36d37f4 (diff)
insert file contents
-rw-r--r--publish.el6
1 files changed, 5 insertions, 1 deletions
diff --git a/publish.el b/publish.el
index 1037f5c..94c6a32 100644
--- a/publish.el
+++ b/publish.el
@@ -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))