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.