Newsletter
Join the Community
Subscribe to our newsletter for the latest news and updates
Automate batch edits to your Markdown content. Integrates with static website generators such as Hugo and Gatsby.
Awesome Hugo is a collection of open-source scripts from the Hugo Blox team for upgrading and managing Hugo and Hugo Blox static sites, automating batch edits to Markdown content and front matter.
Awesome Hugo is a GitHub repository that bundles five utilities for migrating and restructuring Hugo and Hugo Blox sites. It takes existing site files as input — content pages, front matter, and homepage section bundles — and outputs transformed files that follow newer version conventions. The scripts cover the migration paths from Academic v2.4.0 through Hugo Blox v0.8.0, and are maintained by Hugo Blox under the MIT license.
--dry-run mode, and adds helpful Netlify redirects.content/<section>/X.md to content/<section>/X/index.md, assisting the Academic v2.4.0 → v3.0.0 migration.pyyaml and toml as dependencies.headless: true to homepage section bundles for the Academic v4.1 → v4.2 upgrade.--dry-run flag.Each script runs standalone from the repository root or a site directory. Shell scripts are invoked with bash <script>.sh; the Python converter is installed via Poetry (poetry install) and run with poetry run python3 refactor_pages_convert_TOML_to_YAML.py. The README advises backing up your site, reviewing the script code, and using --dry-run whenever a script offers it.
--dry-run option — refactor_page_bundles_to_pages.sh lacks one, so you must manually comment out mv/rm lines to simulate a test. The README warns that the scripts can modify and delete files, so a full backup is mandatory.The repository is free and MIT-licensed. You can use, modify, and redistribute all scripts without charge, and contributions are welcome as long as they remain MIT-licensed.
Yes. The repository is licensed under MIT, so the scripts are free to use, modify, and redistribute, including in commercial projects.
Only singular2plural explicitly lists --dry-run support. The README suggests manually reviewing and commenting out destructive lines for the other scripts, and for refactor_page_bundles_to_pages.sh it notes there is no dry-run flag.
macOS and Linux are supported natively. Windows users can run the scripts through Windows Subsystem for Linux (WSL). Python scripts require Python 3.8+ and use Poetry for dependency management (pyyaml, toml).
The repository description states it integrates with static website generators such as Hugo and Gatsby. The concrete scripts target Hugo/Hugo Blox content structure, but the TOML-to-YAML converter could apply to any Markdown-based static site.
