servuscms / servus

Self-contained CMS, Personal Nostr Relay & Blossom server
GNU General Public License v3.0
67 stars 0 forks source link

Can servus work seamlessly with zola? #8

Open mountain opened 10 months ago

mountain commented 10 months ago

zola is a static site generator, but also rust-powered, even the template engine is the same as servus - tera. Is it possible to find a way make servus work seamlessly with zola?

I mean it is a very user-friendly feature to adapt to 3-party tools.

ibz commented 10 months ago

Interesting question. How would you see the two integrated together?

mountain commented 10 months ago

The basic rationale for any static site generator is that:

As mentioned in README, the rendered HTML files are stored in memory and served directly by Servus.

Then, how about Servus accept a zipped public folder from any other static site generator, or tarball of the public folder, and then serve them?

Is the idea hold and fair? Or other tools can implement this?

ibz commented 10 months ago

I see what you mean ... Yes, it should almost work. In fact, I started this project being inspired by Jekyll, which is a SSG, and later I ported my Jekyll sites to Servus.

I kept tweaking things quite a bit, but I still tried to keep as close compatibility with Jekyll as possible - both for content and for themes! In fact, I store content just like Jekyll, in a folder using one .md file per post, with front matter attached...

Never looked at Zola, but if it's anything like Jekyll, it should also be pretty simple.

You are right, that a tool to do the necessary conversions for content and / or themes from Jekyll, Zola and other SSGs would be very helpful! I'll probably have a look at that at some point. Will keep this issue open as a reminder.

Thanks for the feedback!