Reads data files inside data/ and makes data available in .Site.Data

Fixes #476.

Conflicts:
	hugolib/site.go
This commit is contained in:
Erlend Klakegg Bergheim
2015-01-20 23:08:01 +01:00
committed by bep
parent 4c7e119ca1
commit 773812de6f
4 changed files with 86 additions and 0 deletions

View File

@@ -130,6 +130,7 @@ func NewSite(cmd *cobra.Command, args []string) {
mkdir(createpath, "content")
mkdir(createpath, "archetypes")
mkdir(createpath, "static")
mkdir(createpath, "data")
createConfig(createpath, configFormat)
}