commands: Create LICENSE rather than LICENSE.md in "new theme"

See also #4623
This commit is contained in:
Anthony Fok 2018-06-11 01:54:49 -06:00 committed by Bjørn Erik Pedersen
parent 9717ac7dce
commit ed4a345efe

View file

@ -133,7 +133,7 @@ IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
`) `)
err = helpers.WriteToDisk(filepath.Join(createpath, "LICENSE.md"), bytes.NewReader(by), cfg.Fs.Source) err = helpers.WriteToDisk(filepath.Join(createpath, "LICENSE"), bytes.NewReader(by), cfg.Fs.Source)
if err != nil { if err != nil {
return err return err
} }
@ -150,7 +150,7 @@ func (n *newThemeCmd) createThemeMD(fs *hugofs.Fs, inpath string) (err error) {
name = "` + strings.Title(helpers.MakeTitle(filepath.Base(inpath))) + `" name = "` + strings.Title(helpers.MakeTitle(filepath.Base(inpath))) + `"
license = "MIT" license = "MIT"
licenselink = "https://github.com/yourname/yourtheme/blob/master/LICENSE.md" licenselink = "https://github.com/yourname/yourtheme/blob/master/LICENSE"
description = "" description = ""
homepage = "http://example.com/" homepage = "http://example.com/"
tags = [] tags = []