Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can servus work seamlessly with zola? #8

Open
mountain opened this issue Nov 15, 2023 · 3 comments
Open

Can servus work seamlessly with zola? #8

mountain opened this issue Nov 15, 2023 · 3 comments

Comments

@mountain
Copy link

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
Copy link
Collaborator

ibz commented Nov 15, 2023

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

@mountain
Copy link
Author

mountain commented Nov 15, 2023

The basic rationale for any static site generator is that:

  • posts or pages are stored in plain text files, most of them are adopt the markdown format
  • posts or pages are then rendered into HTML in a public folder by template system
  • a web-server serve the public folder to publish the content on web

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
Copy link
Collaborator

ibz commented Nov 15, 2023

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!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants