4 Static Website Generators for C++
Order of which I believe has more resources.
Creating static websites is one of the most modern technologies for both documentation purposes such as creating a blog, website or even a portal. I particularly use Jekyll which is made with Ruby on Rails, but some people asked me if there are options made with C++ , so I decided to create this mini list for today’s cpp::daily.
So let’s look at 4 options in the order I believe to be the most complete. If you want to know about web framework made with C++ I suggest you to watch this video.
Nift or nsm, short for nifty site manager, is a cross-platform git and LaTeX-like site manager written in C++ . You can create any website you like (static and not static/dynamic) using Nift, although you need some kind of web server, like Apache, NGINX, etc. to host non-static/dynamic websites, while static websites can be easily hosted on platforms like BitBucket, GitHub, GitLab and Netlify.
- Official website: https://nift.dev/
- GitHub: https://github.com/nifty-site-manager/nsm
sudo_site is the simplest and lightest static site generator out there, with no dependencies and with all the libraries already provided with the repository, you don’t need to install any other dependencies.
With approximately 120 lines of code, it becomes the smallest static website generator capable of generating multiple pages and blogs.
The repository also has a GitHub actions configuration file with the help of which you can automate the build process in github itself. He can upload to any repository he likes, just add a PERSONAL ACCESS TOKEN to the secrets with the repo checkbox checked when creating the TOKEN.
Documentation is in progress, although you don’t need to because it’s so simple. After cloning or downloading the repository, just run
BlogC++ is yet another static blog generator, written in C++17.
Use the libraries:
- dukglue with duktape
- libcurl if compiled with the option:
The goal is to provide a decent feature set without requiring a lot of configuration.
- Official website: https://blogcpp.org/
- GitHub: https://github.com/dertuxmalwieder/blogcpp
Bake is a tool to generate blogs as if you were using make. Create a template, bakefile and your markdown posts and you’re ready to go!
- Website: http://ctrl-c.club/~philips/90s/
- GitHub: https://github.com/felipetavares/bake