mirror of
https://github.com/gohugoio/hugo.git
synced 2025-04-29 07:00:31 +03:00
Add new min_version field to theme.toml template
This commit is contained in:
parent
4784b63eeb
commit
634548b9af
1 changed files with 6 additions and 2 deletions
|
@ -220,13 +220,17 @@ func touchFile(x ...string) {
|
||||||
|
|
||||||
func createThemeMD(inpath string) (err error) {
|
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"
|
license = "MIT"
|
||||||
licenselink = "https://github.com/.../.../LICENSE.md"
|
licenselink = "https://github.com/yourname/yourtheme/blob/master/LICENSE.md"
|
||||||
description = ""
|
description = ""
|
||||||
homepage = "http://siteforthistheme.com/"
|
homepage = "http://siteforthistheme.com/"
|
||||||
tags = ["", ""]
|
tags = ["", ""]
|
||||||
features = ["", ""]
|
features = ["", ""]
|
||||||
|
min_version = 0.13
|
||||||
|
|
||||||
[author]
|
[author]
|
||||||
name = ""
|
name = ""
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue