af2785e510 | ||
---|---|---|
assets | ||
config | ||
routes | ||
tools | ||
.gitignore | ||
.travis.yml | ||
Gruntfile.js | ||
LICENSE.md | ||
README.md | ||
hugo.go | ||
package.json |
README.md
hugo - a caddy plugin
Hugo is an easy to use and fast command line static website generator, while Caddy is a lightweight, fast, general-purpose, cross-platform HTTP/2 web server with automatic HTTPS. This extension is able to bring a web interface to Caddy to manage Hugo generated websites. This plugin provides you an web interface to manage your websites made with Hugo.
If you're not developer go to the documentation.
Build from source
Requirements:
- Go 1.6 or higher
- caddydev
- go-bindata
- Node.js w/ npm (optional)
Instructions:
go get github.com/hacdias/caddy-hugo
cd $GOPATH/github.com/hacdias/caddy-hugo
- If you want to modify the CSS/JS:
- Change the third comment to
//go:generate go-bindata -debug -pkg assets -o assets/assets.go templates/ assets/css/ assets/js/ assets/fonts/
npm install
grunt watch
go generate
cd $YOUR_WEBSITE_PATH
caddydev --source $GOPATH/github.com/hacdias/caddy-hugo hugo
- Go to
http://domain:port