hugoでブログ①ローカル環境構築

環境は前回で作成済みなので
まずは公式ドキュメント通りにhugoをインストール・・・けどうまくいかず
windows用のバイナリーダウンロードすることに
Releases · spf13/hugo · GitHub
落としたhugo.exeをパスの通っているGOPATH/binに置いて

mkdir /path/to/site
cd /path/to/site
hugo new site .

テーマはこれに決めてたので
vjeantet/hugo-theme-casper · GitHub

mkdir themes
cd themes
git clone https://github.com/vjeantet/hugo-theme-casper casper

あとは最初の記事を書いてサーバー起動しhttp://localhost:1313/にアクセス

hugo new post/first.md
hugo server --theme=casper --buildDrafts --watch

いけたー簡単

参考
spf13/hugo · GitHub
Hugo Quickstart Guide