Source code of the PushEVs website made with a static site generator called Hugo and HB Cards Theme.
PushEVs was previously made with WordPress, but as time goes by, WordPress websites start to become slow and buggy - partly because installing plugins is fun and easy... Security and backups/restores can also give us more headaches than they should.
This is why I chose a static generator like Hugo:
- Clean code that makes websites super fast
- Backups and restores are easy with git
- No database to manage and worry about getting hacked
- Free hosting with Cloudflare Pages
- Requires less server resources, less electricity, less pollution
The hardest part of migrating from WordPress, was finding a Hugo theme that had all the functions I was using and didn't want to lose. I especially like the recent/featured posts widget in the sticky sidebar. The theme developer is also very knowledgeable and helpful, which made my decision easier.
- Visual Studio Code to write markdown
- ImageMagick to batch convert image files to AVIF
- Coffee...
The code of this website is now open-source, not only in the hope of inspiring others to do the same, but also to allow my visitors to read the code and suggest changes.