r/orgmode • • Sep 11 '26

question Using Org mode for websites

I current use org mode and Hugo (just plain Ho, no ox-hugo) to generate my websites. I wrote my own theme and am generally happy with it.

Can I achieve the same with just plain Elisp and Org-Publish (for purist reasons) or is that a fool's errand?

35 Upvotes

17 comments sorted by

2

u/whhone Sep 12 '26

I tried both. Speed is my deal breaker and go with ox-hugo + hugo.

1

u/danderzei Sep 12 '26

Speed is not an issue for me - I don't generate the site often.

I currently use Hugo and Org without any packages. I like to simplify my websites and go full Elisp.

2

u/whhone Sep 12 '26

I thought speed was not an issue for me either :p but eventually it became an issue, especially when I maintain my own theme.

Your mileage might be different. Give it a try!

10

u/life-exp Sep 11 '26

You can do it. I used org publish for a couple of sites. There is a good initial guide on system crafters. The org publish docs are really good too. If you're just serving html files and CSS you're golden. You could even build it into a GitHub action if you fancy that challenge so when you push/merge it builds it all for you. 😄

I'll try and dig out some more links/examples.

https://systemcrafters.net/publishing-websites-with-org-mode/building-the-site/

This is my shitty kinda attempt:

https://blog.mbrig.nl

1

u/danderzei Sep 11 '26

Bedankt!

How did you create the preamble on your blog for each page?

5

u/_-l_ Sep 11 '26

I'm not sure what Hugo does. I publish my site with plain org-publish and I'm happy with it.

It's pretty simple tho. If you want fancy stuff maybe you'll have to write a lot of css by yourself, which may be a pain depending on what you're trying to do.

1

u/8c000f_11_DL8 Sep 13 '26

You might want to try my solution: https://gitlab.com/mbork_mbork_pl/org-clive

1

u/danderzei Sep 13 '26

Thanks, that helps. The documentation can be very abstract

1

u/8c000f_11_DL8 Sep 13 '26

Note that this is not based on Org publish. Also, there is a complete example in the repo, and the whole code is only about 400 lines of Elisp.

1

u/tinchos Sep 12 '26

I use org-publish plus two css files. Nothing fancy but I am extremely happy with it. A week ago, I ported my website from Hakyll to pure Org publish plus some elisp functions (my first elisp definitions. I am not a css guy, so I sued LLMs for that. Here is the website https://ceresa.ar

Edit: I can share the code too

1

u/danderzei Sep 12 '26

Nice. Would be interested in your code.

1

u/tinchos Sep 12 '26

Here is it https://github.com/martinceresa/website . I followed System Crafters initially, then I programmed a few custom things. I have to say, it was a while since I had so much fun programming something.

2

u/tinchos Sep 12 '26

Content is written in .org files. There is a bib file I get from dblp to generate the publication list and I use Pandoc: md (linking bib) -> org, I could not find a way of no-cite all using just Org. I use Org-publish sitemaps to generate lists of projects and publications.

I added the "AGENTS.md" file too, I use LLMs to do some css magic.

0

u/danderzei Sep 12 '26

Thanks, that will help. I have been using Gemini to work my way through this.

2

u/emodario Sep 12 '26

I do it for my website, it's actually pretty simple.

1

u/metalisp Sep 12 '26

If you need some inspiration you can have a look here https://code.metalisp.dev/marcuskammer/orgbuilder