Hugo常用命令

当前欠缺:

  • 无法渲染数学公式如 $a$, $x^2$
  • 代码没有显示所用语言

基础命令

  1. 修改设置后重新构建网站:
1
hugo server --cleanDestinationDir
  1. 创建新内容
1
hugo new posts/new_posts/index.md
  1. 推送到GitHub Page
1
2
3
4
5
6
7
8
9
hugo

cd public

git add .

git commit -m "更新时间"

git push