Hugoの使い方のメモ


ローカルサーバーの起動

hugo server -D

記事の作成

hugo new posts/my-first-post.md

ローカルサーバー起動中に、hugo new posts/xxxを実行すると、このエラーになる。

Error: Unable to locate config file or config directory. Perhaps you need to create a new site.
       Run `hugo help new` for details.

HTMLの作成。

hugo

hugo