今更hugo

Page content

Introduction

業務では使用してましたが、個人のアウトプットする場として今更ながらの作成です

環境構築

  1. githug上にリポジトリ作成

  2. フォルダ初期化

     hugo new site kensei.github.io
     cd kensei.github.io
     git init
     git remote add
     git submodule add https://github.com/vimux/mainroad.git themes/mainroad
    
  3. hugo.tomlを修正

     theme = "mainroad"
    
  4. 動作確認

     hugo server -D --buildDrafts
    

記事の作成

hugo new content blog/2024/first-post.md

deploy

  1. githubaction作成

     ```
     touch .github/workflows/hugo.yaml
     ```
    
  2. 内容を修正(ほぼ公式通り)

At the end

早い