PaperModx 基于 PaperMod 做了个性化定制并加了些新特性
可在 loyayz.com 查看这些改动
- 调试时不集成 Google Analytics
- 代码块显示标题
- 用新标签页打开外部链接
- 文章元数据前添加图标
- 文章标题后添加标识
- 拆分页面底部信息,方便自定义
- 模板:随机显示图片
- 区分列表和文章的导航文字
- 文章页底部添加面包屑导航
- 搜索页展示标签列表
- 搜索页展示系列列表
- 模板:统计文章篇数和字数
- 文章页展示所属系列的文章列表
- 模板:多标签页
- 允许禁用校验文件完整性
# 安装
git submodule add --depth=1 https://github.com/loyayz/hugo-PaperModx.git themes/PaperModx
# 更新
git submodule update --remote --merge
# 假设你已经安装成功并且将你的仓库推送到远程,重新 clone 你的仓库后需执行这句
git submodule update --init --recursive --depth=1
# 进入你本机中的站点目录
cd blog
# 安装
git clone --depth=1 https://github.com/loyayz/hugo-PaperModx.git themes/PaperModx
# 更新
# 进入主题目录
cd themes/PaperModx
git pull
修改站点配置config.yml
theme: "PaperModx"
其他详细配置请查看 PaperMod 示例