diff options
author | noa | 2024-09-17 09:58:45 +0800 |
---|---|---|
committer | noa | 2024-09-17 09:58:45 +0800 |
commit | 0afebd964fde8e899f26aa1a9503bfd0753aab9b (patch) | |
tree | a24a26c10226d0e2b0eb86f7ebf13f5e7faeb844 /emacs | |
parent | 3700e5cbc77f896fd78e4a45ac730379b1dd0ff5 (diff) |
Remove org website export configuration
Diffstat (limited to 'emacs')
-rw-r--r-- | emacs/init.el | 71 |
1 files changed, 0 insertions, 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 "<strong><a href=\"/\">noa.pub</a></strong> · - <a href=\"https://creativecommons.org/licenses/by-sa/4.0/\">cc by-sa</a> · - <a href=\"/index.xml\">feed</a> · - <a href=\"/archive.html\">archive</a> · - <a href=\"/friends.html\">friends</a> - <!-- - <br/> - <a href=\"/\">go travelling</a> - --> - ") -(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 <pre> tag - :html-head "<meta name=\"color-scheme\" content=\"light dark\"> - <link rel=\"stylesheet\" type=\"text/css\" href=\"love.css\" />" - :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! |