Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
Lxh-3260 committed Jul 18, 2024
1 parent 4557533 commit 07b18e7
Showing 1 changed file with 7 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -87,9 +87,8 @@ bundle exec jekyll clean
>值得一提的是,如果想实现评论功能,需要去注册一个disqus,并在_config.yaml中配置相关的文件。
如果想实现浏览访问计数,需要用到百度的api,这里我并没有实现,故不做赘述。

7. 如果想在博客中展示公式,那么需要额外引入script脚本

```shell
1. 如果想在博客中展示公式,那么需要额外引入script脚本。
```yml
# 在_config.yaml中加入下面几行配置
# Build Settings
markdown: kramdown
Expand All @@ -98,10 +97,12 @@ kramdown:
math_engine: mathjax
mathjax:
cdn: //cdn.jsdelivr.net/npm/mathjax@3/es5/tex-mml-chtml.js

# 在_include/head.html中head模块加入下面这一行
```
```javascript
// 在_include/head.html中head模块加入下面这一行
<script src="https://cdn.jsdelivr.net/npm/mathjax@3/es5/tex-mml-chtml.js" defer></script>

```
```shell
# 重新运行网页,加载script脚本
bundle exec jekyll serve
```

0 comments on commit 07b18e7

Please sign in to comment.