feat(syntax): add fraction syntax (#181)

* feat(syntax): add fraction syntax

* docs: add remind for Hugo extended version
This commit is contained in:
Dillon
2020-03-18 00:52:36 +08:00
committed by GitHub
parent 01d814ef6f
commit 84d48f37dc
19 changed files with 104 additions and 24 deletions

View File

@@ -35,12 +35,16 @@ Discover what the Hugo - **LoveIt** theme is all about and the core-concepts beh
Thanks to the simplicity of Hugo, [Hugo](https://gohugo.io/) is the only dependency of this theme.
Just install latest version of [:(far fa-file-archive): Hugo (> 0.62.0)](https://gohugo.io/getting-started/installing/) for your OS (**Windows**, **Linux**, **macOS**).
Just install latest version of [:(far fa-file-archive): Hugo extended (> 0.62.0)](https://gohugo.io/getting-started/installing/) for your OS (**Windows**, **Linux**, **macOS**).
{{< admonition note "Why not support earlier versions of Hugo?" >}}
Since [Markdown Render Hooks](https://gohugo.io/getting-started/configuration-markup/#markdown-render-hooks) was introduced in the [Hugo Christmas Edition](https://gohugo.io/news/0.62.0-relnotes/), this theme only supports Hugo versions above **0.62.0**.
{{< /admonition >}}
{{< admonition note "Why need the Hugo extended version?" >}}
Since this theme processes SCSS to CSS, the Hugo extended version is needed.
{{< /admonition >}}
## 2 Installation
The following steps are here to help you initialize your new website. If you dont know Hugo at all, we strongly suggest you learn more about it by following this [great documentation for beginners](https://gohugo.io/getting-started/quick-start/).

View File

@@ -40,12 +40,16 @@ Welcome to take the time to propose a translation by [making a PR](https://githu
Thanks to the simplicity of Hugo, [Hugo](https://gohugo.io/) is the only dependency of this theme.
Just install latest version of [:(far fa-file-archive): Hugo (> 0.62.0)](https://gohugo.io/getting-started/installing/) for your OS (**Windows**, **Linux**, **macOS**).
Just install latest version of [:(far fa-file-archive): Hugo extended (> 0.62.0)](https://gohugo.io/getting-started/installing/) for your OS (**Windows**, **Linux**, **macOS**).
{{< admonition note "Why not support earlier versions of Hugo?" >}}
Since [Markdown Render Hooks](https://gohugo.io/getting-started/configuration-markup/#markdown-render-hooks) was introduced in the [Hugo Christmas Edition](https://gohugo.io/news/0.62.0-relnotes/), this theme only supports Hugo versions above **0.62.0**.
{{< /admonition >}}
{{< admonition note "Why need the Hugo extended version?" >}}
Since this theme processes SCSS to CSS, the Hugo extended version is needed.
{{< /admonition >}}
## 2 Installation
The following steps are here to help you initialize your new website. If you dont know Hugo at all, we strongly suggest you learn more about it by following this [great documentation for beginners](https://gohugo.io/getting-started/quick-start/).

View File

@@ -35,12 +35,16 @@ comment: true
由于 Hugo 提供的便利性, [Hugo](https://gohugo.io/) 本身是这个主题唯一的依赖.
直接安装满足你操作系统 (**Windows**, **Linux**, **macOS**) 的最新版本 [:(far fa-file-archive): Hugo (> 0.62.0)](https://gohugo.io/getting-started/installing/).
直接安装满足你操作系统 (**Windows**, **Linux**, **macOS**) 的最新版本 [:(far fa-file-archive): Hugo extended (> 0.62.0)](https://gohugo.io/getting-started/installing/).
{{< admonition note "为什么不支持早期版本的 Hugo?" >}}
由于 [Markdown 渲染钩子函数](https://gohugo.io/getting-started/configuration-markup/#markdown-render-hooks) 在 [Hugo 圣诞节版本](https://gohugo.io/news/0.62.0-relnotes/) 中被引入, 本主题只支持高于 **0.62.0** 的 Hugo 版本.
{{< /admonition >}}
{{< admonition note "为什么需要 Hugo extended 版本?" >}}
由于本主题需要转换 SCSS 文件为 CSS 文件, Hugo extended 版本是必要的.
{{< /admonition >}}
## 2 安装
以下步骤可帮助你初始化新网站. 如果你根本不了解 Hugo, 我们强烈建议你按照此 [快速入门文档](https://gohugo.io/getting-started/quick-start/) 进一步了解它.

View File

@@ -241,6 +241,26 @@ The rendered output looks like this:
[Hugo]^(An open-source static site generator)
### Fraction
{{< admonition warning >}}
{{< version 0.2.0 >}}
{{< /admonition >}}
An extended Markdown syntax for **fraction** is supported in **LoveIt** theme:
```markdown
[Light]{?/}[Dark]
[99]{?/}[100]
```
The rendered output looks like this:
[Light]/[Dark]
[90]/[100]
### Font Awesome
**LoveIt** theme uses [Font Awesome](https://fontawesome.com/) as the icon library.

View File

@@ -246,6 +246,26 @@ The rendered output looks like this:
[Hugo]^(An open-source static site generator)
### Fraction
{{< admonition warning >}}
{{< version 0.2.0 >}}
{{< /admonition >}}
An extended Markdown syntax for **fraction** is supported in **LoveIt** theme:
```markdown
[Light]{?/}[Dark]
[99]{?/}[100]
```
The rendered output looks like this:
[Light]/[Dark]
[90]/[100]
### Font Awesome
**LoveIt** theme uses [Font Awesome](https://fontawesome.com/) as the icon library.

View File

@@ -241,6 +241,26 @@ $$ \ce{Hg^2+ ->[I-] HgI2 ->[I-] [Hg^{II}I4]^2-} $$
[Hugo]^(一个开源的静态网站生成工具)
### 分数
{{< admonition warning >}}
{{< version 0.2.0 >}}
{{< /admonition >}}
**LoveIt** 主题支持一种 **分数** Markdown 扩展语法:
```markdown
[白天]{?/}[夜晚]
[99]{?/}[100]
```
呈现的输出效果如下:
[白天]/[夜晚]
[90]/[100]
### Font Awesome
**LoveIt** 主题使用 [Font Awesome](https://fontawesome.com/) 作为图标库.

View File

@@ -219,8 +219,8 @@ This is a right-aligned paragraph.
### `link`
{{< admonition >}}
{{< version 1.2.0 >}}
{{< admonition warning >}}
{{< version 0.2.0 >}}
{{< /admonition >}}
`link` shortcode is an alternative to [Markdown link syntax](../basic-markdown-syntax/#links). `link` shortcode can provide some other features and can be used in code blocks.

View File

@@ -224,8 +224,8 @@ This is a right-aligned paragraph.
### `link`
{{< admonition >}}
{{< version 1.2.0 >}}
{{< admonition warning >}}
{{< version 2.2.0 >}}
{{< /admonition >}}
`link` shortcode is an alternative to [Markdown link syntax](../basic-markdown-syntax/#links). `link` shortcode can provide some other features and can be used in code blocks.

View File

@@ -221,8 +221,8 @@ This is a right-aligned paragraph.
### `link`
{{< admonition >}}
{{< version 1.2.0 >}}
{{< admonition warning >}}
{{< version 2.2.0 >}}
{{< /admonition >}}
`link` shortcode 是 [Markdown 链接语法](../basic-markdown-syntax/#links) 的替代.