Open7

Hugoを使用したGitHub Pages用の静的HTML生成

みつよしみつよし

Quickstart

https://gohugo.io/getting-started/quick-start/


$ hugo new site docs
Congratulations! Your new Hugo site is created in /Users/Mitsuyoshi/Documents/Development/Projects/blog/docs.

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.

変更した設定等

Reference

トラブルシューティング

ホスティングしたが空のページが映る

初見殺し酷い

The problem is likely to be the theme - it is either missing or broken. Hugo does not come with any default/fallback theme if you fail to provide a working one.
https://stackoverflow.com/a/43693892