From 3b19db3f05b1ce6d868e4c4d31695780ac25f173 Mon Sep 17 00:00:00 2001 From: jjanzen Date: Tue, 1 Apr 2025 13:04:24 -0500 Subject: [PATCH] remove rss stuff --- publish.el | 56 ------------------------------------------------------ 1 file changed, 56 deletions(-) diff --git a/publish.el b/publish.el index dfa88df..68a827b 100644 --- a/publish.el +++ b/publish.el @@ -16,8 +16,6 @@ (use-package yaml-mode) (use-package nix-mode) (use-package plz) -(load "~/website/emacs/tiny-rss") - (require 'org) (require 'plz) @@ -29,38 +27,6 @@ entry (org-publish-find-title entry project))))) -(defun posts-rss-feed (title list) - (concat - "#+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* ( - (title (org-publish-find-title entry project)) - (link (concat (file-name-sans-extension entry) ".html")) - (file (org-publish--expand-file-name entry project)) - (pubdate (format-time-string (car org-time-stamp-formats) - (org-publish-find-date entry project)))) - (message pubdate) - (format "%s -:PROPERTIES: -:RSS: t -:DATE: %s -:AUTHOR: jjanzen -:LINK: %s -:END:\n%s" - title - pubdate - (concat "https://jjanzen.ca/blog/" link) - (get-file-contents file)))) - -(defun publish-posts-rss-feed (plist filename dir)) - (defvar jj/html-head "\ \ ") @@ -121,23 +87,6 @@ :sitemap-format-entry my/org-publish-org-sitemap-format :sitemap-sort-files anti-chronologically :sitemap-title "Blog") - ("org-rss" - :publishing-directory "~/public_html" - :base-directory "~/blog/" - :base-extension "org" - :exclude "index.org" - :publishing-function publish-posts-rss-feed - :rss-extension "xml" - :html-link-home "https://jjanzen.ca" - :html-link-use-abs-url t - :html-link-org-files-as-html t - :auto-sitemap t - :sitemap-function posts-rss-feed - :sitemap-title "jjanzen's Blog" - :sitemap-filename "rss.org" - :sitemap-style list - :sitemap-sort-files anti-chronologically - :sitemap-format-entry format-posts-rss-feed-entry) ("org-config" :base-directory "~/dotfiles/" :base-extension "org" @@ -160,8 +109,3 @@ :publishing-function org-publish-attachment) ("org" :components ("org-core" "org-static-website" "org-config" "org-blog" "org-rss")))) (org-publish-all t) - -(require 'tiny-rss) -(tiny-rss-generate - :input-directory "/root/blog/" - :output-directory "/root/public_html")