33
41
Fork
You've already forked website
53

Pick static site generator #5

Closed
opened 2022年11月07日 12:32:24 +01:00 by realaravinth · 14 comments
No description provided.

I propose Zola because it is simple and minimalistic (and is also the tool that I'm familiar with 😊 ).

Features:

  1. I18n
  2. Search
  3. Sass compilation
  4. Jinja2 style templates
  5. Single binary
I propose Zola because it is simple and minimalistic (and is also the tool that I'm familiar with 😊 ). ## Features: 1. [I18n](https://www.getzola.org/documentation/content/multilingual/) 2. Search 3. Sass compilation 4. Jinja2 style templates 5. 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?
Ghost added this to the Launch milestone 2022年11月08日 11:46:33 +01:00

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.

> 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](https://wiki.mozilla.org/Fluent), a format that has [limited support in Weblate](https://docs.weblate.org/en/latest/formats.html#fluent). But a manual integration is possible.
Contributor
Copy link

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.

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.
Owner
Copy link

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
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).

*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)

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)
Contributor
Copy link

(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.

> (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...

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...
Member
Copy link

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 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.
Contributor
Copy link

I'd reach for SvelteKit by default

Let's go with Aral's Kitten *jk

> I'd reach for SvelteKit by default Let's go with Aral's [Kitten](https://codeberg.org/kitten/app) *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.

For the record @oliverpool experiments with https://astro.build in [this pull request](https://codeberg.org/codename/website/pulls/12). 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:

When the static site generator is decided, the [CI is ready to use it](https://codeberg.org/codename/website/issues/13): * Modify [.woodpecker.yml](https://codeberg.org/codename/website/src/commit/a3eb7979e9f108710199cd7ffa4ef86680fabce1/.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.

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.
Sign in to join this conversation.
No Branch/Tag specified
main
monthly-2026-05
mahlzahn-eslint-js
preview-link-status
nightfire
2022年12月14日-main
No results found.
Labels
Clear labels
404
Broken links or missing content
Accessibility
Accessibility
Blog post
Documentation
Forgejo Documentation
Internationalisation
i18n and l10n
User research - Accessibility
Requires input about accessibility features, likely involves user testing.
User research - Blocked
Do not pick as-is! We are happy if you can help, but please coordinate with ongoing redesign in this area.
User research - Community
Community features, such as discovering other people's work or otherwise feeling welcome on a Forgejo instance.
User research - Config (instance)
Instance-wide configuration, authentication and other admin-only needs.
User research - Errors
How to deal with errors in the application and write helpful error messages.
User research - Filters
How filter and search is being worked with.
User research - Future backlog
The issue might be inspiring for future design work.
User research - Git workflow
AGit, fork-based and new Git workflow, PR creation etc
User research - Labels
Active research about Labels
User research - Moderation
Moderation Featuers for Admins are undergoing active User Research
User research - Needs input
Use this label to let the User Research team know their input is requested.
User research - Notifications/Dashboard
Research on how users should know what to do next.
User research - Rendering
Text rendering, markup languages etc
User research - Repo creation
Active research about the New Repo dialog.
User research - Repo units
The repo sections, disabling them and the "Add more" button.
User research - Security
User research - Settings (in-app)
How to structure in-app settings in the future?
Milestone
Clear milestone
No items
No milestone
Projects
Clear projects
No items
No project
Assignees
Clear assignees
No assignees
6 participants
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
forgejo/website#5
Reference in a new issue
forgejo/website
No description provided.
Delete branch "%!s()"

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?