mirror of
https://github.com/gohugoio/hugo.git
synced 2024-11-21 20:46:30 -05:00
parent
74776726df
commit
85e2ac1a44
2 changed files with 9 additions and 6 deletions
|
@ -117,11 +117,13 @@ func TestExecute(t *testing.T) {
|
|||
|
||||
func checkNewSiteInited(c *qt.C, basepath string) {
|
||||
paths := []string{
|
||||
filepath.Join(basepath, "layouts"),
|
||||
filepath.Join(basepath, "content"),
|
||||
filepath.Join(basepath, "archetypes"),
|
||||
filepath.Join(basepath, "static"),
|
||||
filepath.Join(basepath, "assets"),
|
||||
filepath.Join(basepath, "content"),
|
||||
filepath.Join(basepath, "data"),
|
||||
filepath.Join(basepath, "layouts"),
|
||||
filepath.Join(basepath, "static"),
|
||||
filepath.Join(basepath, "themes"),
|
||||
filepath.Join(basepath, "config.toml"),
|
||||
}
|
||||
|
||||
|
|
|
@ -62,11 +62,12 @@ Use ` + "`hugo new [contentPath]`" + ` to create new content.`,
|
|||
func (n *newSiteCmd) doNewSite(fs *hugofs.Fs, basepath string, force bool) error {
|
||||
archeTypePath := filepath.Join(basepath, "archetypes")
|
||||
dirs := []string{
|
||||
filepath.Join(basepath, "layouts"),
|
||||
filepath.Join(basepath, "content"),
|
||||
archeTypePath,
|
||||
filepath.Join(basepath, "static"),
|
||||
filepath.Join(basepath, "assets"),
|
||||
filepath.Join(basepath, "content"),
|
||||
filepath.Join(basepath, "data"),
|
||||
filepath.Join(basepath, "layouts"),
|
||||
filepath.Join(basepath, "static"),
|
||||
filepath.Join(basepath, "themes"),
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue