}
createConfig(fs, basepath, n.configFormat)
+ createGitignore(fs, basepath)
// Create a default archetype file.
helpers.SafeWriteToDisk(filepath.Join(archeTypePath, "default.md"),
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