Hugo

go 写的静态网站生成器;类似的node hexo,vue vuePress等

一.基本使用

# 初始化项目
hugo new site [dir_name]

# 下载主题
git submodule add [theme_url] [theme_dir]

# 新建文章
hugo new content/posts/my-first-post.md

# 运行
hugo server

# 渲染包含草稿内容
hugo server -D

# 部署
hugo

二.配置文件hugo.toml

paperMod 主题配置参考

三.主题

在自己目录相同位置,创建相同文件即可覆盖主题内容
在下载主题后有额外信息的情况下