From: Anthony Fok Date: Tue, 10 Mar 2015 15:49:42 +0000 (-0600) Subject: Add new min_version field to theme.toml template X-Git-Tag: v0.14~213 X-Git-Url: http://git.maquefel.me/?a=commitdiff_plain;h=634548b9af81c813d74cc07ce01b43c32a32fe91;p=brevno-suite%2Fhugo Add new min_version field to theme.toml template --- diff --git a/commands/new.go b/commands/new.go index 781351e4..5721b7f8 100644 --- a/commands/new.go +++ b/commands/new.go @@ -220,13 +220,17 @@ func touchFile(x ...string) { func createThemeMD(inpath string) (err error) { - by := []byte(`name = "` + strings.Title(helpers.MakeTitle(filepath.Base(inpath))) + `" + by := []byte(`# theme.toml template for a Hugo theme +# See https://github.com/spf13/hugoThemes#themetoml for an example + +name = "` + strings.Title(helpers.MakeTitle(filepath.Base(inpath))) + `" license = "MIT" -licenselink = "https://github.com/.../.../LICENSE.md" +licenselink = "https://github.com/yourname/yourtheme/blob/master/LICENSE.md" description = "" homepage = "http://siteforthistheme.com/" tags = ["", ""] features = ["", ""] +min_version = 0.13 [author] name = ""