shithub: hugo

Download patch

ref: 634548b9af81c813d74cc07ce01b43c32a32fe91
parent: 4784b63eebd51b1860bb8127c7e786e36158e026
author: Anthony Fok <[email protected]>
date: Tue Mar 10 05:49:42 EDT 2015

Add new min_version field to theme.toml template

--- a/commands/new.go
+++ b/commands/new.go
@@ -220,13 +220,17 @@
 
 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 = ""