HUGO を Netlify へデプロイする

zumikiti

November 28, 2019

HUGO をインストール

▶ brew install hugo
▶ hugo version

プロジェクトを作る

▶ hugo new site blog
Congratulations! Your new Hugo site is created in /Users/teke/Cord/blog.

Just a few more steps and you're ready to go:

1. Download a theme into the same-named folder.
   Choose a theme from https://themes.gohugo.io/ or
   create your own with the "hugo new theme <THEMENAME>" command.
2. Perhaps you want to add some content. You can add single files
   with "hugo new <SECTIONNAME>/<FILENAME>.<FORMAT>".
3. Start the built-in live server via "hugo server".

Visit https://gohugo.io/ for quickstart guide and full documentation.

これで以下ディレクトリが作成される。

▶ tree   
.
├── archetypes
│   └── default.md
├── config.toml
├── content
├── data
├── layouts
├── static
└── themes

6 directories, 2 files

テーマを適用する

▶ cd blog

▶ git init

▶ git submodule add https://github.com/vividvilla/ezhil themes/ezhil

config.toml に追記する。

themes = "ink"