暫無描述

Zach Dahl dc62823c13 [#16] rename adminLocation -> admindir and adminroot 8 年之前
admin d3ef518295 remove mithril-ui 8 年之前
.gitignore 3c751cbb6f [ui] pull in ui source, add dev.sh script 8 年之前
LICENSE d816f56d49 project init 8 年之前
README.md dc62823c13 [#16] rename adminLocation -> admindir and adminroot 8 年之前
admin.go dc62823c13 [#16] rename adminLocation -> admindir and adminroot 8 年之前
auth.go dc62823c13 [#16] rename adminLocation -> admindir and adminroot 8 年之前
config.go dc62823c13 [#16] rename adminLocation -> admindir and adminroot 8 年之前
content.go 1e2778363f add separate editing functionality for non-content files 8 年之前
main.go dc62823c13 [#16] rename adminLocation -> admindir and adminroot 8 年之前
static.go 1e2778363f add separate editing functionality for non-content files 8 年之前

README.md

Topiary

A content management system built on Hugo, a static website generator.

Status

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.

Use cases

  1. Run Topiary on your computer, for individual use. Manually copy or automatically sync the output to your production environment, either as changes are made or at regular intervals.
  2. Run Topiary on a local server or intranet, for team use. Manually copy or automatically sync the output to your production environment, either as changes are made or at regular intervals.
  3. Run Topiary in your production environment, for individual or team use. Have your site rebuild as you make changes.

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.

Installation

Right now the only way to install is by building from source.

  1. Make sure to have Git, Go, and Hugo installed.

  2. Clone the Topiary repo:

    $ go get github.com/topiary-io/topiary
    
  3. Build Topiary:

    $ cd topiary
    $ go install
    
  4. 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
    
  5. Copy the admin assets to your Hugo site root:

    $ cp -r $GOPATH/src/github.com/topiary-io/topiary/admin path/to/hugo/site/root
    
  6. Start Topiary:

    $ cd path/to/hugo/site/root
    $ topiary
    
  7. Point a web browser to localhost:3000 to view your site, and localhost:3000/admin/ to view the site input.

Config

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

License

Apache 2.0