Hugoで作成した、このサイトをNetlifyでホスティングするまでのメモ。
使用したHugoは0.31.1
# 新規サイト作成〜Beautiful Hugoテーマのclone
$ hugo new site devnull
$ cd themes
$ git clone https://github.com/halogenica/beautifulhugo.git beautifulhugo
$ cp -r beautifulhugo/exampleSite/* ..
その後、config.tomlの編集、コンテンツの作成、テーマの調整などを行う。
$ git init
$ git remote add origin https://github.com/hogehoge/hogehoge.git
$ git add .
$ git commit -m 'first commit'
$ git push origin master
Netlifyにログインし、以下の設定を行う。
ローカルで記事を書きGitHubへpushすれば、自動的にデプロイされるのでお手軽で良い。
Netlifyは無料のPersonalプランでもカスタムドメイン・HTTPS・プライベートリポジトリが使えるのが素敵だ。