diff options
author | imzeuk <imzeuk@gmail.com> | 2019-04-16 10:04:06 +0300 |
---|---|---|
committer | imzeuk <imzeuk@gmail.com> | 2019-04-16 10:04:06 +0300 |
commit | cb991e36fd582bb1bcc8ee58621d2feaae409866 (patch) | |
tree | f1cd9cd5e7896d4081e5622a7a7355caec7c9ddf /exampleSite | |
parent | 009ecf34d8fd294986cc8898211a849c74d06021 (diff) |
add MathJax
Diffstat (limited to 'exampleSite')
-rw-r--r-- | exampleSite/config.toml | 8 | ||||
-rw-r--r-- | exampleSite/content/posts/theme-preview.md | 28 |
2 files changed, 34 insertions, 2 deletions
diff --git a/exampleSite/config.toml b/exampleSite/config.toml index d94f8ac..779c0e0 100644 --- a/exampleSite/config.toml +++ b/exampleSite/config.toml @@ -11,6 +11,9 @@ enableEmoji = true [author] # essential # 必需 name = "Zeuk" +[blackfriday] + smartypants = false + [[menu.main]] # config your menu 配置菜单 name = "首页" weight = 10 @@ -33,11 +36,14 @@ enableEmoji = true url = "/about/" [params] - subTitle = "the site subtitle" # 网站二级标题 + subTitle = "the site subtitle" # 网站二级标题 footerSlogan = "我的精神家园" # 网站页脚标语 keywords = ["Hugo", "theme","zozo"] # 网站关键字 description = "Hugo theme zozo example site." # 网站描述 + # mathjax + mathjax = true # 是否使用mathjax(数学公式) + # Valine. # You can get your appid and appkey from https://leancloud.cn # more info please open https://valine.js.org diff --git a/exampleSite/content/posts/theme-preview.md b/exampleSite/content/posts/theme-preview.md index b5f4fb7..ff75f6e 100644 --- a/exampleSite/content/posts/theme-preview.md +++ b/exampleSite/content/posts/theme-preview.md @@ -141,7 +141,33 @@ function doIt() { - Second item - Third item -# Emoji +# Math + +``` +$$ +evidence\_{i}=\sum\_{j}W\_{ij}x\_{j}+b\_{i} +$$ + +$$ +AveP = \int_0^1 p(r) dr +$$ + +When $a \ne 0$, there are two solutions to \(ax^2 + bx + c = 0\) and they are +$$x = {-b \pm \sqrt{b^2-4ac} \over 2a}.$$ +``` + +$$ +evidence\_{i}=\sum\_{j}W\_{ij}x\_{j}+b\_{i} +$$ + +$$ +AveP = \int_0^1 p(r) dr +$$ + +When $a \ne 0$, there are two solutions to \(ax^2 + bx + c = 0\) and they are +$$x = {-b \pm \sqrt{b^2-4ac} \over 2a}.$$ + +#### Emoji This is a test for emoji. :smile: |