SBWG - sweet bash website generator

SBWG (sweet bash website generator) is a simple bash script that generates a static HTML web site from simple text files. I wrote it just for fun this website. And it's pronounced sibwig (because why not). It is not professional, not very adaptive to other website structures and does not have many features compared to most other static website generators. But if you know HTML and bash you can certainly adapt it for creating other websites. Or use it as it is, if you happen to want the same website structure as I have. As the project grew some features have been introduced that make it simple to customise a web site without editing the script itself. To bring it to full flexibility you can now even add hooks with your own code to individual web sites or even overwrite functions of the script without editing the script itself.

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.


  • 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
  • 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 feed
    • File attachments, embedded media attachments
  • Stylesheet templates
  • Modifications/Additions to the generation process on a per-web-site basis with hooks and a sourced settings file
  • Easy staging


Read the top of the CHANGELOG file before running an updated version of SBWG on an existing web site!