From 0afebd964fde8e899f26aa1a9503bfd0753aab9b Mon Sep 17 00:00:00 2001 From: noa Date: Tue, 17 Sep 2024 09:58:45 +0800 Subject: Remove org website export configuration --- emacs/init.el | 71 ----------------------------------------------------------- 1 file changed, 71 deletions(-) diff --git a/emacs/init.el b/emacs/init.el index 714c051..206361b 100644 --- a/emacs/init.el +++ b/emacs/init.el @@ -427,77 +427,6 @@ The misspelled word is taken from OVERLAY. WORD is the corrected word." ;; I mentioned that i thought this wasn't the best default behaviour [[https://github.com/minad/jinx/discussions/184][in the jinx repository]], but Daniel seems happy with it. I appreciate that he's made it so easy to change the behaviour to something i prefer. -;; Publishing my website -;; I generate my website using org mode. I use the built in ox-publish subsystem for convenience. However, it isn't all that convenient, as it doesn't actually work very well at the moment. - -(defun read-file-as-string (filename) - "Read file contents from FILENAME." - (with-temp-buffer - (insert-file-contents filename) - (buffer-string))) - -;; (setq noa/website-header (read-file-as-string "/home/noa/projects/org-website/templates/header.html")) -(setq noa/website-footer "noa.pub · - cc by-sa · - feed · - archive · - friends - - ") -(setq noa/website-footer "") - -(setq org-publish-project-alist - `(("website" - :components ("website-pages" "website-assets" "website-feed")) - ("website-pages" - :publishing-function org-html-publish-to-html - :base-directory "~/Documents/website" - :publishing-directory "~/Documents/public_html" - :base-extension "org" - :with-drawers t - :html-link-home "/" - :html-head-include-default-style nil - :html-head-include-scripts nil - :html-doctype "html5" - ;; :html-validation-link nil - :html-preamble "" - :html-postamble ,noa/website-footer - :html-home/up-format "" - :html-link-up "" - :html-html5-fancy t - :html-indent nil ;; breaks
tag - :html-head " - " - :auto-sitemap t - :sitemap-filename "~/Documents/website/index.org" - :sitemap-title "noa.pub" - :sitemap-style list - :sitemap-sort-folders ignore - :sitemap-ignore-case t - ) - ("website-assets" - :publishing-function org-publish-attachment - :base-directory "~/Documents/website" - :publishing-directory "/home/noa/data/public_html" - :base-extension "css\\|js\\|png|\\jpg|\\ico" - :recursive t) - ("website-feed" - :base-directory "~/Documents/website" - :base-extension "org" - :publishing-directory "~/Documents/public_html" - :publishing-function (org-rss-publish-to-rss) - :html-link-home "https://noa.pub/" - :html-link-use-abs-url t - :exclude ".*" - :include ("index.org" "boke.org")))) - -;; We also need to install a newer version of htmlize so that we can properly convert syntax highlighted code into html. I wish there was a way to turn this off, but i couldn't easily find it, so we're stuck with it for now. - -;; (package-ensure 'htmlize) - ;; Getting help ;; Emacs is great because of its great built in help system! -- cgit 1.4.1-2-gfad0