summaryrefslogtreecommitdiffstats
path: root/commands
diff options
context:
space:
mode:
Diffstat (limited to 'commands')
-rw-r--r--commands/new_site.go9
1 files changed, 0 insertions, 9 deletions
diff --git a/commands/new_site.go b/commands/new_site.go
index 3d62bd44c..3e4cf4561 100644
--- a/commands/new_site.go
+++ b/commands/new_site.go
@@ -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