Github PagesとHugoでProfileページを作って公開する。
はじめ方
$ brew install hugo
$ hugo new site $(siteName)
テンプレートとしてPaperModを使用する。
$ cd $(siteName)
$ git submodule add https://github.com/adityatelange/hugo-PaperMod.git themes/PaperMod --depth=1 ─╯
$ git submodule update --init --recursive
config.ymlを更新する。
公開方法
Repository home -> Settings -> Pages からデプロイ方法にGithub Actionsを指定する。
config.ymlのbaseURLの下あたりに、publishDir: "public"を追加する。
更新方法
hugo server -Dでローカルでサーバが起動する。
hugo new post/${pageTitle}.mdで新しいページを作成する。
そして、マークダウンファイルを更新する。
公開したい場合はdraft: falseに変更する。
Google search console
- sitemap.xmlをサイトマップに登録する。