summary refs log tree commit diff
diff options
context:
space:
mode:
authornoa@gaiwan.org2024-07-26 20:37:29 +0000
committernoa@gaiwan.org2024-07-26 20:37:29 +0000
commitf96017bb4cb9e943c34f0fe712565daddd513c10 (patch)
tree6969511ae0a6e6d2c24a2f10e0e1df79a13cbb18
parent5c506a94b8e2ee9f9b065b264b1de6f10db239dd (diff)
Update website configuration
-rw-r--r--config.org92
1 files 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 <pre> tag
-  	 :html-head "<link rel=\"stylesheet\" type=\"text/css\" href=\"love.css\" />
-  <meta name=\"color-scheme\" content=\"light dark\">"
-  	 :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 ;; breaks <pre> tag
+              	 :html-head "<meta name=\"color-scheme\" content=\"light dark\">
+    <style>
+    body { font-family: \"Comic Sans MS\"; max-width: 80ch; }
+    img { max-width: 100%; }
+    pre { overflow: scroll; border-right: 1px solid; }
+  </style>"
+              	 :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.