A fast and flexible static site generator built with love by bep, spf13, and friends in Go.
Change the baseURL
in config.yml
to your site's URL
baseURL: "https://lopins.github.io/hexo-template"
or
baseURL= "https://lopins.github.io/hugo-template"
-
pull theme into
themes/
and update it.git submodule add git@github.com:adityatelange/hugo-PaperMod.git themes/hugo-PaperMod && git submodule update --init --recursive
-
update
theme: "hugo-PaperMod"
inconfig.yml
and configure other fields -
update
editPost: "https://github.com/lopins/hugo-template/tree/main/content"
inconfig.yml
-
into
themes/hugo-PaperMod
to configure the theme intheme.yml
git add . && git commit -m ':wrench:docs(themes): Add or update configuration files' && git push origin main
-
Install
Click "Use this template" -> "Create a new repository"
-
Set up
Set up and enable GitHub Pages service
-
Publish
Publish an article on the "hugo branch" of Github.
# Add Submodule - Upadte Submodule
git submodule add git@github.com:adityatelange/hugo-PaperMod.git themes/hugo-PaperMod
git submodule update --init --recursive
# Delete Submodule
git submodule deinit -f themes/hugo-PaperMod
rm -rf .git/modules/themes/hugo-PaperMod
rm -rf themes/hugo-PaperMod
# Display Submodule - Pull Submodule - Sync Submodule
git submodule status
git submodule foreach git pull origin main
git submodule sync
If you meet the problem like remote: Permission to xxx denied to github-actions[bot].
When you push your changes, you need to give the permission to the github-actions[bot]
in your repo's.
By following the steps below: Settings -> Actions -> General -> Workflow permissions -> Read and write permissions -> Save
.