gablog

module
v0.0.0-...-7268833 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 13, 2014 License: BSD-3-Clause

README

Gopher Academy Blog engine

Tested and Deployed by drone.io Build Status

Shamelessly forked from go.blog.

To add articles, fork and create articles in the /content directory. See examples in /example articles directory, or read go.blog and slide documentation. http://godoc.org/code.google.com/p/go.talks/present

Send pull request with article.

Local development

To set up a local copy of the blog, build it and run it on http://localhost:9003, just enter the following:

git clone https://github.com/bketelsen/gablog.git
cd cmd/blog
go get -d # download dependencies
go build # build the blog
cd ../..
./cmd/blog/blog

The blog command also supports some configurable parameters:

$ ./cmd/blog/blog --help
Usage of ./cmd/blog/blog:
  -content="content/": path to content files
  -http="localhost:9003": HTTP listen address
  -static="static/": path to static files
  -template="template/": path to template files

Deployment

git push origin master drone.io does the rest, with some bash scripting and docker love

Directories

Path Synopsis
cmd
blog
This is a blog server for articles written in present format.
This is a blog server for articles written in present format.
html2article
This program takes an HTML file and outputs an corresponding article file in present format.
This program takes an HTML file and outputs an corresponding article file in present format.
content
pkg
atom
Package atom defines XML data structures for an Atom feed.
Package atom defines XML data structures for an Atom feed.
support
racy
This program demonstrates a race condition.
This program demonstrates a race condition.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL