2023 12 07
Hugo
Install Hugo glpat-dvmmEZ2vJ4nx6xFejsZD
Linux sudo apt-get install hugo MacOS brew install hugo Windows chocolatey choco install hugo --confirm scoop scoop install hugo Manual installation https://github.com/gohugoio/hugo/releases Create a new project hugo new site my-hugo-site cd my-hugo-site git init git submodule add https://github.com/panr/hugo-theme-terminal.git themes/terminal git submodule update --init --recursive Create a post hugo new posts/hello-world.md Create a GitHub repository git remote add origin https://github.com/<your-gh-username>/<repository-name> git branch -M main git push -u origin main Command completion bash hugo completion zsh > "<span class="math-inline">\{fpath\[1\]\}/\_hugo" source <(hugo completion zsh); compdef _hugo hugo zsh
Hello World
#!/bin/bash token="K9XnykG9DLBLnxKyYdu1" cd /bak glab auth login --stdin < token.txt for repo in $(curl -s "https://code.mogm.top/api/v4/projects?private_token=$token&per_page=1000" | jq .[].path_with_namespace);do