aboutsummaryrefslogtreecommitdiff
path: root/build-site.el
diff options
context:
space:
mode:
authorazureazure <azureazure@disroot.org>2025-12-24 01:27:00 +0100
committerazureazure <azureazure@disroot.org>2025-12-24 01:27:00 +0100
commit0fa266ecbde54c065146472f7c8ff2b1af83c138 (patch)
tree8661a45d172d2dcef3bfbea375bbec6cc07c8545 /build-site.el
parent6a81e64b64fc1afdc028b4c7d7cdb4addf72ecc4 (diff)
downloadslimegirl.nexus-0fa266ecbde54c065146472f7c8ff2b1af83c138.tar.gz
rss feed + more cancerous colors
Diffstat (limited to 'build-site.el')
-rw-r--r--build-site.el15
1 files changed, 14 insertions, 1 deletions
diff --git a/build-site.el b/build-site.el
index 2d7eedc..609949f 100644
--- a/build-site.el
+++ b/build-site.el
@@ -1,11 +1,13 @@
+(package-initialize)
(require 'ox-publish)
+(require 'webfeeder)
(setq org-html-validation-link nil
org-html-head-include-scripts nil
org-html-doctype "html5"
org-html-html5-fancy t
org-html-head-include-default-style nil
- org-html-postamble nil
+ ;; org-html-postamble nil
org-html-head (with-temp-buffer
(insert-file-contents "head.html")
(buffer-string)))
@@ -27,6 +29,7 @@
:publishing-directory "./public"
;; :with-title nil
:with-toc nil
+ :html-postamble nil
:section-numbers nil
:time-stamp-file nil)
(list "assets"
@@ -49,6 +52,16 @@
:sitemap-sort-files 'anti-chronologically
:sitemap-format-entry 'custom/sitemap-format-entry)))
+(delete-directory "public" :recursive t)
+
(org-publish-all t)
+(webfeeder-build
+ "rss.xml"
+ "./public/blog"
+ "https://lemurianmage.srht.site"
+ (cddr (delete "index.html" (directory-files "public/blog"))) ; no "." and ".."
+ :title "lemurblog"
+ :builder 'webfeeder-make-rss
+ :build-date 0)
(message "Build done!")