📒

hugo + github pagesで個人サイトを作る

2025/01/28に公開

参考になった記事
https://docs.github.com/ja/pages/getting-started-with-github-pages/creating-a-github-pages-site
https://zenn.dev/okaponta/articles/c302f58507febc

テーマ選ぶ
https://themes.gohugo.io/

demoサイトをみて、シンプルで良いなと思ってこのテーマを使った。
https://hugo-coder.netlify.app/

自分が使ったテーマのリポジトリ(ここからDL)
https://github.com/luizdepra/hugo-coder/tree/main

注意点

  • sampleサイトと同じfolder構成、ページ構成にしないと反映されない
    ※Hugo はファイルの場所と名前に基づいて異なる方法でファイルを扱うから
    自分が使ったテーマだと、以下のように配置するとか。
content/
├── posts/          # Directory for blog posts
├── about.md        # Single page for About
├── contact.md      # Single page for Contact
└── projects.md     # Single page for Projects

https://themes.gohugo.io/themes/hugo-theme-hello-friend-ng/

Discussion