News for hackers. Stuff that matters.
Re:Org Mode's new site by josmala on Tuesday October 27, 2020 @12:43AM (#24904536)
The old site looked liked it's exported from org-mode files. New site looks less like that. Probably still done by exporting the same org files in emacs.

The workflow to build that site is completely different from what most web designers are accustomed.

Re:Org Mode's new site by tecosaur on Tuesday October 27, 2020 @01:10AM (#24904635)
Can confirm, this is an org file export. Much of the difficulty here was the hackery involved 'escaping' the restrictions of the generated HTML. For example, take a look at this: "margin-left: min(calc(0px - var(--body-left) - var(--body-padding)), calc(30rem - 50vw - 0.5var(--body-left) + 0.5var(--body-right)))". That took a while, and some head scratching :P
Re:Org Mode's new site by githubalphapapa on Tuesday October 27, 2020 @12:38PM (#24909100)
That's cool, but why are you calculating CSS attributes dynamically at export time instead of just writing a stylesheet and putting that in an export theme? Separating presentation from content, etc.
Re:Org Mode's new site by tecosaur on Tuesday October 27, 2020 @01:08PM (#24909432)
Erm, that is what's been done. Did I give a different impression?
Re:Org Mode's new site by githubalphapapa on Wednesday October 28, 2020 @09:58AM (#24918763)
You posted that code that seems to show calculating some CSS values dynamically.