Why I use Zola.
Zola is a static site generator written in Rust. I wanted to bootstrap this personal blog and host it cheaply on a CDN. I shortlisted Zola for these reasons:
- 7.1k Github stars assured me this wasn't going to be a fly-by-night hobby project.
- A single binary file that I could simply
sudo dnf install zola
on my Fedora PC. - I hacked out, in no time, this blog website by just following the Get Started tutorial.
- The Documentation looked slimmer than Hugo's, which indicated a less complicated system?
- Support for
{{ shortcode() }}
and syntax highlighting. - When writing markdown, double space at the end of sentence will produce a line break
<br>
.
If you wanted to include your blog posts on the home page, use this snippet in the index.html
template:
{% block content %}
{% set posts = get_section(path="blog/_index.md") %}
{% for page in posts.pages %}
<article>
{{ page.content | safe }}
</article>
{% endfor %}
{% endblock content %}
There's more to Zola that I've yet to delve into.