mirror of
https://github.com/gohugoio/hugo.git
synced 2024-11-29 18:32:11 -05:00
1.2 KiB
1.2 KiB
title | Pubdate |
---|---|
Contributing to Hugo | 2013-07-01 |
We welcome all contributions. If you want to contribute, all that is needed is simply fork Hugo, make changes and submit a pull request. If you prefer, pick something from the roadmap or contact spf13 about what may make sense to do next.
Overview
- Fork it from https://github.com/spf13/hugo
- Create your feature branch (
git checkout -b my-new-feature
) - Commit your changes (
git commit -am 'Add some feature'
) - Push to the branch (
git push origin my-new-feature
) - Create new Pull Request
Clone locally (for contributors):
git clone https://github.com/spf13/hugo
cd hugo
go get
Because go expects all of your libraries to be found in either $GOROOT or $GOPATH, it's helpful to symlink the project to one of the following paths:
- ln -s /path/to/your/hugo $GOPATH/src/github.com/spf13/hugo
- ln -s /path/to/your/hugo $GOROOT/src/pkg/github.com/spf13/hugo
Running Hugo
cd /path/to/hugo
go install github.com/spf13/hugo/hugolibs
go run main.go
Building Hugo
cd /path/to/hugo
go build -o hugo main.go
mv hugo /usr/local/bin/