Hugo ハンズオンチュートリアル
themes を git submodule で管理しているため、リポジトリをクローンしたときにそのリポジトリを取得する必要がある。
$ git clone git@github.com:t2y/hugo-hands-on.git
$ git submodule update --init
新規ディレクトリの配下に index.md
を作る。
$ hugo new post/deploy-by-github-actions/index.md
Content "path/to/hugo-hands-on/content/post/deploy-by-github-actions/index.md" created
ディレクトリを作らずにコンテンツを管理する。
$ hugo new post/install-hugo.md
Content "path/to/hugo-hands-on/content/post/install-hugo.md" created
ホームメニューのコンテンツは特別に _index.md
というファイル名で content 直下に作成する。
$ hugo new _index.md
Content "path/to/hugo-hands-on/content/_index.md" created