Story Details

  • BSSG – My journey from dynamic CMS to bash static site generator

    Posted: 2025-04-29 20:36:05

    Frustrated with the complexity and performance overhead of dynamic CMS platforms like WordPress, the author developed BSSG, a static site generator written entirely in Bash. Driven by a desire for simplicity, speed, and portability, they transitioned their website from WordPress to this custom solution. BSSG utilizes Pandoc for Markdown conversion and a templating system based on heredocs, offering a lightweight and efficient approach to website generation. The author emphasizes the benefits of this minimalist setup, highlighting improved site speed, reduced attack surface, and easier maintenance. While acknowledging potential limitations in features compared to full-fledged CMS platforms, they champion BSSG as a viable alternative for those prioritizing speed and simplicity.

    Summary of Comments ( 1 )
    https://news.ycombinator.com/item?id=43837751

    HN commenters generally praised the author's simple, pragmatic approach to static site generation, finding it refreshing compared to more complex solutions. Several appreciated the focus on Bash scripting for its accessibility and ease of understanding. Some questioned the long-term maintainability and scalability of a Bash-based generator, suggesting alternatives like Python or Go for more complex sites. Others offered specific improvements, such as using rsync for deployment and incorporating a templating engine. A few pointed out potential vulnerabilities in the provided code examples, particularly regarding HTML escaping. The overall sentiment leaned towards appreciation for the author's ingenuity and the project's minimalist philosophy.