remove rss stuff

This commit is contained in:
jjanzen 2025-04-01 13:04:24 -05:00
parent eaeeb00fcc
commit 3b19db3f05

View file

@ -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 "\
<link rel='stylesheet' href='/css/stylesheet.css' type='text/css'/>\
<script src='/scripts/cssa-webring.js'></script>")
@ -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")