Keep calm and Write something

Change the blog theme from mainroad to bearblog which is more minimalist.

Delete existing submodules

> git submodule deinit themes/mainroad themes/cleanwhite

Add bearblog theme as a submodule

> git submodule add <theme_repository_url> themes/<theme_name>
> git submodule add https://github.com/janraasch/hugo-bearblog themes/hugo-bearblog
> cat .gitmodules
[submodule "themes/hugo-bearblog"]
        path = themes/hugo-bearblog
        url = https://github.com/janraasch/hugo-bearblog

Install(update) theme submodule

> git submodule update
Cloning into '/Users/cychong/Developer/blog/another/themes/hugo-bearblog'...
Submodule path 'themes/hugo-bearblog': checked out 'd44ea2fd106f1bc373e0040dc7da58644638e7f0'

> ls themes 
hugo-bearblog

Change GitHub Action to get submodules

jobs:
  deploy:
    runs-on: ubuntu-latest
    steps:
      - uses: actions/checkout@v2
        with:
          submodules: recursive
          token: ${{ secrets.TOKEN }}

      # (Optional)If you have the theme added as submodule, you can pull it and use the most updated version
      - name: Update theme
        run: git submodule update --init --recursive --remote

#Hugo