jekyll-theme-hamilton を使った GitHub Pages のサイトです。
- このリポジトリを GitHub にプッシュする
- リポジトリの Settings → Pages → Build and deployment で:
- Source を 「GitHub Actions」 に設定する(必須)
- ブランチのままにすると
Unknown tag 'bibliography'でビルドが失敗します → 手順は docs/PAGES-SETUP.md を参照 - 初回は
.github/workflows/jekyll-pages.ymlが実行され、ビルド&デプロイされます
- 数分後に次の URL で表示されます:
- リポジトリ名が
username.github.ioの場合:https://username.github.io - それ以外(例:
website)の場合:https://username.github.io/website
- リポジトリ名が
_config.yml の baseurl をリポジトリ名に合わせてください。
- リポジトリが username.github.io のとき:
baseurl: "" - リポジトリが website など他の名前のとき:
baseurl: "/website"
bundle install
bundle exec jekyll serveブラウザで http://localhost:4000 を開きます(プロジェクトサイトの場合は http://localhost:4000/website )。
- サイト情報:
_config.ymlのtitle,author,descriptionなど - ナビゲーション:
_data/navigation.yml - SNS リンク:
_data/social.yml(コメントを外して URL を設定) - Publication(論文):
_bibliography/references.bibに BibTeX を追加。Google Scholar の「引用」→「BibTeX」で取得した内容を貼り付けて追記できます。 - スキン:
_config.ymlのskin(daylight / midnight / sunrise / sunset) - ブログ記事:
_posts/にYYYY-MM-DD-スラッグ.mdで追加