Zach Dahl dc62823c13 [#16] rename adminLocation -> admindir and adminroot | 8 gadi atpakaļ | |
---|---|---|
admin | 8 gadi atpakaļ | |
.gitignore | 8 gadi atpakaļ | |
LICENSE | 8 gadi atpakaļ | |
README.md | 8 gadi atpakaļ | |
admin.go | 8 gadi atpakaļ | |
auth.go | 8 gadi atpakaļ | |
config.go | 8 gadi atpakaļ | |
content.go | 8 gadi atpakaļ | |
main.go | 8 gadi atpakaļ | |
static.go | 8 gadi atpakaļ |
A content management system built on Hugo, a static website generator.
Topiary is currently alpha software. It will build your Hugo source, start a web server, and make the input viewable at /admin
. Topiary should not be used in anything remotely resembling a production environment.
Possible production environments are GitHub Pages, a VPS, a shared host, IPFS, or your own server. Since the output is static, it's lightweight, secure, cheap to host, and simple to set up.
Right now the only way to install is by building from source.
Clone the Topiary repo:
$ go get github.com/topiary-io/topiary
Build Topiary:
$ cd topiary
$ go install
If you don't have a Hugo site, clone a bootstrapped site:
$ cd path/to/project/dir
$ git clone https://github.com/enten/hugo-boilerplate
Copy the admin assets to your Hugo site root:
$ cp -r $GOPATH/src/github.com/topiary-io/topiary/admin path/to/hugo/site/root
Start Topiary:
$ cd path/to/hugo/site/root
$ topiary
Point a web browser to localhost:3000
to view your site, and localhost:3000/admin/
to view the site input.
Topiary will read a config file in either /etc/topiary
or to your site's Hugo config file.
[topiary]
admindir = "admin" # location of admin assets
adminroot = "/admin" # front end admin root
Apache 2.0