Hugo 使い方〜基礎編〜
July 13, 2020
ドキュメント見ながら Hugo の使い方をメモ。 https://gohugo.io/getting-started/
post を追加する #
$ hugo new posts/hugo-getting-started.md
content
以下に新しいファイルが出力される。
$ tree content
content
└── posts
└── hugo-getting-started.md
1 directory, 1 file
サーバー起動して確認 #
$ hugo server -D
http://localhost:1313
で確認できる。
静的ページの出力 #
$ hugo -D
public
以下に出力される。このファイル群をサーバーにアップすればデプロイ完了。