summaryrefslogtreecommitdiffstats
path: root/commands
diff options
context:
space:
mode:
authorAnthony Fok <foka@debian.org>2018-06-11 01:54:49 -0600
committerBjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com>2018-06-11 10:40:22 +0200
commited4a345efeaa19eef2c1c6360d22f75c24abc31a (patch)
treebb4daeead80eaacf7a1673e75f0628f79ec1e820 /commands
parent9717ac7dce84d004afde4edb32ad81319c7dd8a7 (diff)
commands: Create LICENSE rather than LICENSE.md in "new theme"
See also #4623
Diffstat (limited to 'commands')
-rw-r--r--commands/new_theme.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/commands/new_theme.go b/commands/new_theme.go
index 3a3677c85..c09ec027d 100644
--- a/commands/new_theme.go
+++ b/commands/new_theme.go
@@ -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 = []