From dd77465252a0cba3ae33c12294f0deb13f8485c0 Mon Sep 17 00:00:00 2001 From: Dillon Date: Fri, 13 May 2022 04:03:15 +0800 Subject: [PATCH] chore: docs for 0.2.11 release --- .../content/posts/theme-documentation-basics/index.en.md | 4 ++-- .../content/posts/theme-documentation-basics/index.zh-cn.md | 4 ++-- .../content/posts/theme-documentation-content/index.en.md | 2 ++ .../content/posts/theme-documentation-content/index.zh-cn.md | 2 ++ .../posts/theme-documentation-extended-shortcodes/index.en.md | 2 ++ .../theme-documentation-extended-shortcodes/index.zh-cn.md | 2 ++ .../posts/theme-documentation-mermaid-shortcode/index.en.md | 2 ++ .../theme-documentation-mermaid-shortcode/index.zh-cn.md | 2 ++ 8 files changed, 16 insertions(+), 4 deletions(-) diff --git a/exampleSite/content/posts/theme-documentation-basics/index.en.md b/exampleSite/content/posts/theme-documentation-basics/index.en.md index 2d2d29d1f..30a3a9939 100644 --- a/exampleSite/content/posts/theme-documentation-basics/index.en.md +++ b/exampleSite/content/posts/theme-documentation-basics/index.en.md @@ -437,10 +437,10 @@ Please open the code block below to view the complete sample configuration :(far # {{< version 0.2.0 changed >}} {{< link "https://katex.org/" KaTeX >}} mathematical formulas [params.page.math] enable = true - # default inline delimiter is $ ... $ and \( ... \) + # {{< version 0.2.11 changed >}} default inline delimiter is $ ... $ and \( ... \) inlineLeftDelimiter = "" inlineRightDelimiter = "" - # default block delimiter is $$ ... $$, \[ ... \], \begin{equation} ... \end{equation} and some other functions + # {{< version 0.2.11 changed >}} default block delimiter is $$ ... $$, \[ ... \], \begin{equation} ... \end{equation} and some other functions blockLeftDelimiter = "" blockRightDelimiter = "" # KaTeX extension copy_tex diff --git a/exampleSite/content/posts/theme-documentation-basics/index.zh-cn.md b/exampleSite/content/posts/theme-documentation-basics/index.zh-cn.md index f15965b66..88f8134c4 100644 --- a/exampleSite/content/posts/theme-documentation-basics/index.zh-cn.md +++ b/exampleSite/content/posts/theme-documentation-basics/index.zh-cn.md @@ -445,10 +445,10 @@ hugo # {{< version 0.2.0 changed >}} {{< link "https://katex.org/" KaTeX >}} 数学公式 [params.page.math] enable = true - # 默认行内定界符是 $ ... $ 和 \( ... \) + # {{< version 0.2.11 changed >}} 默认行内定界符是 $ ... $ 和 \( ... \) inlineLeftDelimiter = "" inlineRightDelimiter = "" - # 默认块定界符是 $$ ... $$, \[ ... \], \begin{equation} ... \end{equation} 和一些其它的函数 + # {{< version 0.2.11 changed >}} 默认块定界符是 $$ ... $$, \[ ... \], \begin{equation} ... \end{equation} 和一些其它的函数 blockLeftDelimiter = "" blockRightDelimiter = "" # KaTeX 插件 copy_tex diff --git a/exampleSite/content/posts/theme-documentation-content/index.en.md b/exampleSite/content/posts/theme-documentation-content/index.en.md index 71e30ead7..7d069b101 100644 --- a/exampleSite/content/posts/theme-documentation-content/index.en.md +++ b/exampleSite/content/posts/theme-documentation-content/index.en.md @@ -245,6 +245,8 @@ This part is shown in the [emoji support page](../emoji-support/). ### Mathematical Formula +{{< version 0.2.11 changed >}} + **LoveIt** theme supports mathematical formulas based on [$\KaTeX$](https://katex.org/). Set the property `enable = true` under `[params.math]` in your [site configuration](../theme-documentation-basics#site-configuration) diff --git a/exampleSite/content/posts/theme-documentation-content/index.zh-cn.md b/exampleSite/content/posts/theme-documentation-content/index.zh-cn.md index b91377532..106674e29 100644 --- a/exampleSite/content/posts/theme-documentation-content/index.zh-cn.md +++ b/exampleSite/content/posts/theme-documentation-content/index.zh-cn.md @@ -244,6 +244,8 @@ resources: ### 数学公式 +{{< version 0.2.11 changed >}} + **LoveIt** 基于 [$\KaTeX$](https://katex.org/) 提供数学公式的支持. 在你的 [网站配置](../theme-documentation-basics#site-configuration) 中的 `[params.math]` 下面设置属性 `enable = true`, diff --git a/exampleSite/content/posts/theme-documentation-extended-shortcodes/index.en.md b/exampleSite/content/posts/theme-documentation-extended-shortcodes/index.en.md index 894e04e1a..4391bb78c 100644 --- a/exampleSite/content/posts/theme-documentation-extended-shortcodes/index.en.md +++ b/exampleSite/content/posts/theme-documentation-extended-shortcodes/index.en.md @@ -345,6 +345,8 @@ console.log('Hello LoveIt!'); ## 12 raw +{{< version 0.2.11 >}} + `raw` is a shortcode to insert raw **:(fab fa-html5 fa-fw): HTML** content in your post. This is useful when you want to include some Markdown content to **avoid being rendered or escaped** by Hugo. diff --git a/exampleSite/content/posts/theme-documentation-extended-shortcodes/index.zh-cn.md b/exampleSite/content/posts/theme-documentation-extended-shortcodes/index.zh-cn.md index 5edc076e2..1b605ed90 100644 --- a/exampleSite/content/posts/theme-documentation-extended-shortcodes/index.zh-cn.md +++ b/exampleSite/content/posts/theme-documentation-extended-shortcodes/index.zh-cn.md @@ -346,6 +346,8 @@ console.log('Hello LoveIt!'); ## 12 raw +{{< version 0.2.11 >}} + `raw` shortcode 用来在你的文章中插入原始 **:(fab fa-html5 fa-fw): HTML** 内容. 一个 `raw` 示例: diff --git a/exampleSite/content/posts/theme-documentation-mermaid-shortcode/index.en.md b/exampleSite/content/posts/theme-documentation-mermaid-shortcode/index.en.md index 00f04f911..97f66a093 100644 --- a/exampleSite/content/posts/theme-documentation-mermaid-shortcode/index.en.md +++ b/exampleSite/content/posts/theme-documentation-mermaid-shortcode/index.en.md @@ -18,6 +18,8 @@ categories: ["documentation"] hiddenFromHomePage: true --- +{{< version 0.2.11 changed >}} + The `mermaid` shortcode supports diagrams in Hugo with [Mermaid](https://mermaidjs.github.io/) library. diff --git a/exampleSite/content/posts/theme-documentation-mermaid-shortcode/index.zh-cn.md b/exampleSite/content/posts/theme-documentation-mermaid-shortcode/index.zh-cn.md index aaab148b8..8105ba4d6 100644 --- a/exampleSite/content/posts/theme-documentation-mermaid-shortcode/index.zh-cn.md +++ b/exampleSite/content/posts/theme-documentation-mermaid-shortcode/index.zh-cn.md @@ -18,6 +18,8 @@ categories: ["documentation"] hiddenFromHomePage: true --- +{{< version 0.2.11 changed >}} + `mermaid` shortcode 使用 [Mermaid](https://mermaidjs.github.io/) 库提供绘制图表和流程图的功能.