Skip to content

xuzhijvn/xuzhijvn.github.io

Repository files navigation

Tony Blog

创建:

hugo new -c content/zh-cn posts/newpost.md

编译:

hugo -d docs

主题升级:

razonyang/hugo-theme-bootstrap

$ cd themes/hugo-theme-bootstrap
$ git fetch
$ git checkout [version]
$ cd ../../
$ git add themes/hugo-theme-bootstrap
$ git commit -m 'Upgrade the theme'
  • Replace the [version] with the latest version. The version can be listed by git tag -l | sort -rV.
  • You can also checkout the master branch for getting the latest commit.