Thank you for your interest in contributing to Hugo! We value every kind of contribution, from code to documentation, bug reports, and community support. Letβs build something amazing together! π
- Fork the repository and create your branch from
master. - Make your changesβwhether itβs code, documentation, or bug fixes.
- Test your changes locally.
- Submit a Pull Request for review.
If youβre new to open source, donβt worry! The Hugo team and community are here to help you get started.123
We are committed to fostering a welcoming and inclusive environment. Please be respectful and considerate to others. For more details, see our Code of Conduct. π«Ά
- π¬ Answer questions on the forum
- π Improve documentation
- π Report and squash bugs
- π¨ Create or improve themes
- π Suggest or implement new features
- π§Ή Help manage issues and discussions
Before you start, ensure you have:
- Git
- Go (version 1.23.0 or later)
- C compiler (GCC or Clang)
- Updated your
PATHas per Go documentation
For detailed setup instructions, see the Development Guide.2
- Search existing issues before opening a new one.
- For bugs, include:
- Hugo version (
hugo version) - Operating system
- Steps to reproduce
- Hugo version (
- Use the appropriate repository for documentation or theme issues.
If unsure, ask in the forum first! 13
- Fork and make changes in a feature branch.
- Reference an open issue (with
bugorenhancementlabel) for non-trivial changes. - Add or update tests as needed.
- Run
go fmtand ensuremage checkpasses. - Squash your commits into one (
git rebase -i). - Sign the CLA if prompted.
- Add documentation for new features or changes.
- Submit your PR and describe your changes clearly.
- Use clear, concise messages.
- Prefix with type:
fix:,feat:,docs:,refactor:, etc. - Example:
fix: resolve panic on empty config
All contributors are recognized and appreciated! Check out our contributors list and join our awesome community! π
For questions or help, reach out via:
Thank you for helping Hugo grow! Every contribution makes a difference. Happy coding! π
- Be kind and constructive π€
- No spam or off-topic content π«
- Keep discussions public and transparent π¬
- Respect review decisions and feedback π
- Have fun and learn! π
Ready to contribute? Fork, code, and PR away! π
This guideline is based on Hugoβs official contribution process and best practices for open source projects1245.