Tulis is a live markdown blog from idiot for everyone
P.S Building blogging platform is hard. In the end I only use this for few weeks. I guess this will be testimony how I learn Golang.
How can I install this?
go get -u github.com/yursan9/tulis
If you already configured your GOPATH and PATH to GOPATH/bin, you can run the program like this:
tulis
And you can open localhost:port
in your browser (Port is default to 8080).
If you want to see how the application work, you can cd
to the directory
and execute go run main.go
cd $GOPATH/src/github.com/yursan9/tulis
TULIS_BASE="example" TULIS_RELATIVE="true" go run main.go
Because it's originally made to power up my simple blog, there isn't many thing
that can be configured. You can configure this using environment variables. You
need to add prefix TULIS
before the name of options.
Example:
export TULIS_PORT=":1234"
tulis
Option | Description | Type |
---|---|---|
PORT | Port number | string |
BASEDIR | Base directory for your site | string |
POSTDIR | Path to directory of your blog's posts | string |
TEMPLDIR | Path to directory of your blog's templates | string |
STATICDIR | Path to directory of your blog's static files | string |
RELATIVE | If true make *DIR relative to BASEDIR | bool |
MAXPOSTS | Number of max posts in one page | uint |
Option | Default |
---|---|
PORT | ":8080" |
BASEDIR | $PWD |
POSTDIR | "posts" |
TEMPLDIR | "templates" |
STATICDIR | "static" |
RELATIVE | true |
MAXPOSTS | 5 |
- julienschmidt's httprouter
- russross's blackfriday
- BurntSushi's toml
- gosimple's slug