1. How to auto pull the newest master branch from git?

    use crontab -e to set the periodic task, in this case , it’s the auto_pull_from_git.sh script.

  2. The date format? the date format must be ****--, for example 2023-12-9 should be 2023-12-09.

  3. update the hugo version to latest: amd64:

    wget https://github.com/gohugoio/hugo/releases/download/v0.121.2/hugo_extended_0.121.2_linux-amd64.deb
    sudo dpkg -i hugo_extended_0.121.2_linux-amd64.deb
    

    arm64:

    wget https://github.com/gohugoio/hugo/releases/download/v0.121.2/hugo_extended_0.121.2_linux-arm64.deb
    sudo dpkg -i hugo_extended_0.121.2_linux-arm64.deb
    
  4. two ways to create the blog website: 4.1 when using ngrok

    cd PaperMod/
        hugo server --themesDir ../ --disableFastRender --baseURL="https://redfish-regular-cattle.ngrok-free.app/"
    

    you should change the baseURL to your own ngrok website-name.

    4.2 when using the static web content + nginx you just need to set the nginx.conf, direct your own domain name to the hugo’s static content directory which is created by running hugo in PaperMod dir. Details can be found in hugo+nginx

TODO: 折腾 Hugo & PaperMod 主题