master
: 公開ブランチdevelop
: Theme, サイト設定記事 post
: 記事投稿
$ brew update && brew install hugo
$ git clone git@github.com:honmachi-nomi/knp-honmachi-netlify.git
$ cd knp-honmachi-netlify
ステータス: 下書き( draft = true
)の記事が content/post/hoge.md
に作成されます。
draft = true
のまま公開ブランチに push しても公開されません。
$ hugo new review/hoge.md
記事が作成できたら、 draft = false
にします。
$ hugo undraft content/post/hoge.md
現在使用中の Theme 名 robust を引数でわたします。
$ hugo server --theme=hugo_theme_robust
config.toml に以下を書けば、省略することができます。
theme = "hugo_theme_robust"
$ hugo server
また下書き状態の記事を表示する際は以下のオプションも必要です。
$ hugo server --buildDrafts --theme=hugo_theme_robust