Pick static site generator #5
I propose Zola because it is simple and minimalistic (and is also the tool that I'm familiar with 😊 ).
Features:
- I18n
- Search
- Sass compilation
- Jinja2 style templates
- Single binary
Can it be linked to Weblate somehow? I mean... you can do it manually I'm sure. But is there a recommended way to do that already?
Can it be linked to Weblate somehow? I mean... you can do it manually I'm sure. But is there a recommended way to do that already?
Not yet. Took a deeper look at Zola i18n support, it is very basic and WIP. They are leaning towards implementing Fulent, a format that has limited support in Weblate.
But a manual integration is possible.
There are plenty of SSGs to pick from: https://jamstack.org/generators/
Might be worth to have someone go through them and evaluate them according to our criteria.
To throw some in:
- I really appreciate onepagers (no file structure, just a long landing page). Especially to present something, this helps in getting users interested and not confused. Stuff like admin docs etc can then be built wiht other tools. To get this started, I often use pandoc (markdown → html, with a custom template and only a few lines of CSS)
- I (ab-)use Material for MkDocs as a theme. https://squidfunk.github.io/mkdocs-material/ it's mainly for docs, but can also suit as a great homepage if you customize a little and think about the file structure
Cross-posting from the chat
Thank you @fnetX I tried Material for MkDocs and it looks promising!
WIP available under https://oliverpool.srht.site/
I have to decide where to share the code (as a branch here, or repo I own).
In #7 @Ryuno-Ki mentioned https://www.11ty.dev/.
I used it for a website, but I would not do it again (livereload is quite slow, since the whole site has to be build on every change).
I used https://astro.build/ for another site, which I found quite enjoyable (except for their "rushing" out of beta: https://github.com/withastro/astro/issues/4190#issuecomment-1216755788)
(livereload is quite slow, since the whole site has to be build on every change).
That's not true anymore :)
Might require some configuration, though.
Regarding astro.build https://astrowind.vercel.app/ seems to tick many boxes from codename/meta#30
- Responsive
- SEO
- light/dark theme
- No JS
- no external assets
- blog
- RSS
As mentioned, I already worked with this static generator and would be more comfortable than using mkdocs-material.
However astro.build probably has a bus-factor of 1...
I think any mainstream SSG will be learnable easily-enough for most frontend devs, so I wouldn't worry too much about bus factor unless something really esoteric is picked.
That said, I haven't used any of the SSGs suggested so far. If I was building the site I'd reach for SvelteKit by default, but like everyone else's suggestions, it's just because I'm familiar with it and I like it.
I've heard good things about Astro.
Zola looks very interesting.
Personally I'd avoid anything Python-based because it's always a nightmare to set up but that's just me 😆
I'd say ease of doing i18n should be a very important factor in the choice.
I'd reach for SvelteKit by default
Let's go with Aral's Kitten *jk
For the record @oliverpool experiments with https://astro.build in this pull request.
Now that the discussion settled a little, maybe a decision can be made. As someone writing content I have no preference: happy with anything.
In the meantime I'll just add markdown files at the root of the repository and will move / adapt them in the appropriate directory later.
When the static site generator is decided, the CI is ready to use it:
- Modify .woodpecker.yml to use the static site generator
- The HTML pages will show on https://codeberg.page at https://codename.codeberg.page/website/
Since no concern was raised against astro, I went ahead and merged it.
I updated the CI preparation of @dachary to automatically push to https://codeberg.org/codename/pages, which is visitable on https://codename.codeberg.page/ (having / is easier than dealing with a /website/ subfolder).
Feel free to re-open this issue, to reconsider this.
No due date set.
No dependencies set.
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?