用的是 Ataias Pereira Reis 给上游提交的 PR
adityatelange/hugo-PaperMod#140
的代码,稍微改了一下开关选项。
在 layouts/partials/ 目录下创建文件
先创建 math.html
| |
然后创建 head.html 中增加如下的配置:
| |
在 config 或者 page 的 front matter 中配置 math: true,就可以了。
| |
$$y =x$$
| |
测试 $y=x$ inline
用的是 Ataias Pereira Reis 给上游提交的 PR
adityatelange/hugo-PaperMod#140
的代码,稍微改了一下开关选项。
在 layouts/partials/ 目录下创建文件
先创建 math.html
| |
然后创建 head.html 中增加如下的配置:
| |
在 config 或者 page 的 front matter 中配置 math: true,就可以了。
| |
$$y =x$$
| |
测试 $y=x$ inline