Hugo: `hugo new site` for existing directory

Created on 6 Jun 2018  路  4Comments  路  Source: gohugoio/hugo

Not something very important, but is there a reason why hugo new site would not work with an existing directory? My instinctual workflow is to create a new Github repo, clone it to my computer, and add Hugo to it.

Most helpful comment

imho this isn't very obvious. Other projects have the convention of --here so that it creates in the current directory instead of creating a new subdirectory.

All 4 comments

I'm sorry, I 'll show myself out. It's only when I looked in the source code that I noticed the --force flag. 馃槵

I'm sorry, I 'll show myself out. It's only when I looked in the source code that I noticed the --force flag. 馃槵

A year later and I am out the same door....

Me too 馃槃

imho this isn't very obvious. Other projects have the convention of --here so that it creates in the current directory instead of creating a new subdirectory.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

bep picture bep  路  3Comments

moorereason picture moorereason  路  3Comments

crash-dive picture crash-dive  路  3Comments

kaushalmodi picture kaushalmodi  路  3Comments

digitalcraftsman picture digitalcraftsman  路  3Comments