Situation
# hugo blog的主題在git上面是用submodule的形式載入(掛別人的git repo)
Hugo blog theme is loaded from Git as a submodule (linked to another person’s Git repository).
# 想要客製化網站,需更改myblog > layouts > partials > head > custom.html(git repo submodule)
To customize the website, modify myblog > layouts > partials > head > custom.html (in the Git repo submodule).
Solution
# 新增資料夾路徑
mkdir -p layouts/partials/head
# 新增檔案
touch layouts/partials/head/custom.html
# git add .
# git commit -m "update"
# git push