Skip to content

t2y/hugo-hands-on

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

36 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

hugo-hands-on

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

Releases

No releases published

Packages

No packages published

Languages