Revert "commands: Add .gitignore "hugo new site""

This fails on Windows, so it needs to be reconsidered.

This reverts commit 92979d9288.
This commit is contained in:
Bjørn Erik Pedersen 2018-10-16 08:43:38 +02:00
parent 92979d9288
commit a205f24ba5
No known key found for this signature in database
GPG Key ID: 330E6E2BD4859D8F
1 changed files with 0 additions and 9 deletions

View File

@ -97,7 +97,6 @@ func (n *newSiteCmd) doNewSite(fs *hugofs.Fs, basepath string, force bool) error
}
createConfig(fs, basepath, n.configFormat)
createGitignore(fs, basepath)
// Create a default archetype file.
helpers.SafeWriteToDisk(filepath.Join(archeTypePath, "default.md"),
@ -142,14 +141,6 @@ func createConfig(fs *hugofs.Fs, inpath string, kind string) (err error) {
return helpers.WriteToDisk(filepath.Join(inpath, "config."+kind), &buf, fs.Source)
}
func createGitignore(fs *hugofs.Fs, inpath string) (err error) {
var gitignore bytes.Buffer
gitignore.WriteString("public/")
return helpers.WriteToDisk(filepath.Join(inpath, ".gitignore"), &gitignore, fs.Source)
}
func nextStepsText() string {
var nextStepsText bytes.Buffer