commands: Create LICENSE rather than LICENSE.md in "new theme"
authorAnthony Fok <foka@debian.org>
Mon, 11 Jun 2018 07:54:49 +0000 (01:54 -0600)
committerBjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com>
Mon, 11 Jun 2018 08:40:22 +0000 (10:40 +0200)
See also #4623

commands/new_theme.go

index 3a3677c85a62eed63fcda4e11e25d830b56f8872..c09ec027daf5dcf2372bb0946c38d88f3cb9e549 100644 (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.
 `)
 
-       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 {
                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))) + `"
 license = "MIT"
-licenselink = "https://github.com/yourname/yourtheme/blob/master/LICENSE.md"
+licenselink = "https://github.com/yourname/yourtheme/blob/master/LICENSE"
 description = ""
 homepage = "http://example.com/"
 tags = []