SBWG (sweet bash website generator) is a bash script that generates a static HTML web site from a structure of text files. I wrote it just for fun and this web site. And it's pronounced sibwig (because why not). Over the time it has become a rather feature-rich SSG (Static Site Generator) that resembles a CMS with blog support closer than other SSGs. The main difference between SBWG and most other SSGs is that SBWG generated sites on which each page contains a menu with links e.g. to each topic in the blog, a tag cloud, a list of authors, custom entries, and so on.
The list of use cases covered by SBWG became larger and larger over time. But it is still possible to ignore all that and create a simple site with nothing but a handful of text files. And if you want to add a specific feature to the site at some point, chances are good that there is a simple SBWG way of doing it. You can quickly create a web log or other site by copying the example site. But web sites are customisable in detail, as is the process of generating them. If you know HTML and bash you can even extend it with your own code in hooks and custom functions.
I publish new versions here at unpredictable intervals. There likely already is a newer version that I just haven't come around to adding yet. If you are interested in my blog entries about SBWG, look there or there.
Features
- Generates static HTML structure from a plain text source file structure
- Adds menu(s), header and footer to each page/HTML file
- No database needed
- Simple image galleries
- Complete menu on each page
- Blog categories, topics and other tags
- Tag cloud
- Custom menu entries for each page or blog entry possible
- Expandible with custom code
- Weblog/Blog generation
- Categorised posts with multiple levels
- Blog entries can be additionally categorised in topics for an index view
- Classical blog view, filterable by category, topic, author, language or author AND one of the others
- Support for multi-author weblogs
- Attached image galleries
- Use of images/icons for tags
- Simple RSS feeds (blog-wide feed and feeds for each individual topic, category, language and author)
- File attachments, embedded media attachments
- Image descriptions from image file's meta information
- Content warnings
- Simple ways of adding notes to entries, referencing other entries or linking entries to each other
- Style templates
- Modifications/Additions to the generation process on a per-web-site basis with hooks and a sourced settings file
- Parallelised HTML file generation
- Easy staging
Download
Read the top of the CHANGELOG file before running an updated version of SBWG on an existing web site!
- 2026-08-22: Version 0.13.4 (even more stable version)
- 2025-11-09: Version 0.13.0 (pretty stable version)
- 2024-06-11: Version 0.12.8 (pretty stable version)
- 2023-05-20: Version 0.11.5 (first version with menu tag support)
- 2023-02-05: Version 0.11.1 (relatively stable version)
- 2022-09-19: Version 0.10.11
- 2022-07-10: Version 0.10.10
- 2022-05-24: Version 0.10.9
- 2022-04-13: Version 0.10.8
- 2022-04-12: Version 0.10.7
- 2022-03-27: Version 0.10.5 (lots of updates)
- 2021-12-11: Version 0.9.14
- 2021-10-10: Version 0.9.7
- 2021-08-24: Version 0.9.5
- 2021-07-31: Version 0.9.4 (bad version, lotta bugs)
- 2021-07-10: Version 0.9.3
- 2021-06-20: Version 0.9.2
- 2021-05-28: Version 0.9.0
- 2021-05-15: Version 0.8.9
- 2021-04-22: Version 0.8.8
- Version 0.6.17
- 2020-09-16: Version 0.5.21
- 2020-03-05: Version 0.5.3
- 2020-01-05: Version 0.4.17