hugo 導入#
環境構築#
brew install hugo
hugo new site blog-name
cd blog-name
git init
git submodule add https://github.com/budparr/gohugo-theme-ananke.git themes/ananke
echo 'theme = "ananke"' >> config.toml
記事作成#
hugo new posts/pos-namet.md ## 記事作成
hugo server -D ## ドラフト含めてローカルで確認
Netlify設定#
netlify.tomlを作成してリポジトリにpush
netlify.toml
[build]
publish = "public"
command = "hugo --theme=ananke --gc --minify"
[build.environment]
HUGO_VERSION = "0.83.0"
Related Notes#
References#
Tags#
#software