From f96017bb4cb9e943c34f0fe712565daddd513c10 Mon Sep 17 00:00:00 2001 From: noa@gaiwan.org Date: Fri, 26 Jul 2024 20:37:29 +0000 Subject: Update website configuration --- config.org | 92 ++++++++++++++++++++++++++++++++------------------------------ 1 file changed, 48 insertions(+), 44 deletions(-) diff --git a/config.org b/config.org index d2136a7..bae5942 100644 --- a/config.org +++ b/config.org @@ -816,50 +816,54 @@ I generate my website using org mode. I use the built in ox-publish subsystem f #+end_src #+begin_src elisp - (setq org-publish-project-alist - `(("website" - :components ("website-pages" "website-assets" "website-feed")) - ("website-pages" - :publishing-function org-html-publish-to-html - :base-directory "~/data/website" - :publishing-directory "~/data/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 "~/data/website/archive.org" - :sitemap-title "Archive" - :sitemap-style list - :sitemap-sort-folders ignore - :sitemap-ignore-case t - ) - ("website-assets" - :publishing-function org-publish-attachment - :base-directory "~/data/website" - :publishing-directory "/home/noa/data/public_html" - :base-extension "css\\|js\\|png|\\jpg|\\ico" - :recursive t) - ("website-feed" - :base-directory "~/data/website" - :base-extension "org" - :publishing-directory "~/data/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")))) + (setq org-publish-project-alist + `(("website" + :components ("website-pages" "website-assets" "website-feed")) + ("website-pages" + :publishing-function org-html-publish-to-html + :base-directory "~/data/website" + :publishing-directory "~/data/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 ;; breakstag + :html-head " + " + :auto-sitemap t + :sitemap-filename "~/data/website/archive.org" + :sitemap-title "Archive" + :sitemap-style list + :sitemap-sort-folders ignore + :sitemap-ignore-case t + ) + ("website-assets" + :publishing-function org-publish-attachment + :base-directory "~/data/website" + :publishing-directory "/home/noa/data/public_html" + :base-extension "css\\|js\\|png|\\jpg|\\ico" + :recursive t) + ("website-feed" + :base-directory "~/data/website" + :base-extension "org" + :publishing-directory "~/data/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")))) #+end_src 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. -- cgit 1.4.1-2-gfad0