#+TITLE: 09-08-2025: Website Changes #+OPTIONS: num:nil toc:nil #+DATE: <2025-08-09 Sat> #+FILETAGS: :emacs:website: * What was worked on I saw a few websites that used marginal notes on the right side of the screen like [[https://ogbe.net/blog/emacs_org_static_site][this one]], so I decided to try and implement this feature in this wesbite. In my mind I thought of using an external pre-configured CSS that I can just insert and ta-da it would work. How wrong I was. See, this website is published with ~org-publish~, meaning the org files that are written are converted to HTML through a transcoder. And as I already had a ~org.css~[fn:1] stylesheet which was primarily used for syntax highlighting, it caused some layout and formatting issue when I tried to use something like ~tufte.css~[fn:2]. Anyways, long story short, the main thing I worked on today was styling this website, and ensuring certain macros worked: #+BEGIN_SRC emacs-lisp (setq org-export-global-macros (append '(("sidenote" . "@@html:$2@@") ("epigraph" . "@@html:
$1
@@") ("epigraph_single" . "@@html:
$1
@@") ("epigraph3" . "@@html:
$1
@@") ("kbd" . "@@html:$1@@@@latex:\\texttt{$1}@@") ("margimg" . "@@html:@@") org-export-global-macros))) #+END_SRC This worked quite nicely, and I made sure to make these changes accessible on smaller devices. Anyways, I quite like this style of posting. Nothing formal nor technical, just a bunch of rambling on about random things. Oh, and also there's a darkmode theme switch now for you night owls. [fn:1] See: https://gongzhitaao.org/orgcss/ [fn:2] See: https://edwardtufte.github.io/tufte-css/