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

See also #4623
This commit is contained in:
Anthony Fok authored and Bjørn Erik Pedersen committed 2018-06-11 10:40:22 +02:00
1 parent 9717ac7dce
commit ed4a345efe
1 file changed
+2 -2
+2 -2
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 = []