0
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

Netlify + Hugo でサイト作る手順メモ

Last updated at Posted at 2018-01-14

Netlify を使えば GitHub に Hugo のファイル push すれば自動でビルドしてくれる。

用意するもの

  • Hugo ファイル一式
    参照 : Quick Start
  • GitHub のアカウント
  • Netlify のアカウント
    • GitHub アカウントでサインインできる

手順

  • 適当な GitHub repository をつくる
  • Hugo のファイル一式を push する
URL: https://github.com/shirokuro331/netlify-blog.git
cd :categoryname:
git add -A
git commit -m "commitlog"
git push origin master```

- Netlify から GitHub の repository を選択する
- Netlify で build の設定をする
  - Bransh : master
  - Build command : hugo --theme=:themename: --buildDrafts
  - Publish directory : public/
  - うまくいかない場合 : [Netlify 上で使う Hugo のバージョンを指定する](https://monaural.net/post/201707/set-hugo-version-on-netlify/)
0
1
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?