From 73a776cccb9d1a993da6910c20166bafdd5c731e Mon Sep 17 00:00:00 2001
From: amzrk2
Date: Sat, 25 Jul 2020 18:24:04 +0800
Subject: Update README
---
.github/stale.yml | 17 -----
README.md | 4 +-
README_CN.md | 37 +++++++++++
layouts/partials/scripts-front.html | 34 +++-------
static/ie/favicon.ico | Bin 15086 -> 0 bytes
static/ie/firefox.png | Bin 39072 -> 0 bytes
static/ie/index.html | 123 ------------------------------------
7 files changed, 50 insertions(+), 165 deletions(-)
delete mode 100644 .github/stale.yml
delete mode 100644 static/ie/favicon.ico
delete mode 100644 static/ie/firefox.png
delete mode 100644 static/ie/index.html
diff --git a/.github/stale.yml b/.github/stale.yml
deleted file mode 100644
index fbc7b42..0000000
--- a/.github/stale.yml
+++ /dev/null
@@ -1,17 +0,0 @@
-# Number of days of inactivity before an issue becomes stale
-daysUntilStale: 14
-# Number of days of inactivity before a stale issue is closed
-daysUntilClose: 5
-# Issues with these labels will never be considered stale
-exemptLabels:
- - pinned
- - security
-# Label to use when marking an issue as stale
-staleLabel: wontfix
-# Comment to post when marking an issue as stale. Set to `false` to disable
-markComment: >
- This issue has been automatically marked as stale because it has not had
- recent activity. It will be closed if no further activity occurs. Thank you
- for your contributions.
-# Comment to post when closing a stale issue. Set to `false` to disable
-closeComment: true
diff --git a/README.md b/README.md
index 0a2468d..792a18c 100644
--- a/README.md
+++ b/README.md
@@ -20,7 +20,7 @@ Now supported i18n langs: en, zh-hans, zh-hant, ja, nl, pt-pt. Check the i18n fo
- [🎨 Favicon](#-favicon)
- [❌ License, toc und comments](#-license-toc-und-comments)
- [🎵 APlayer](#-aplayer)
- - [📐 Render LaTeX with KaTex](#-image-zoom-and-lazyload-settings)
+ - [📐 Render LaTeX with KaTex](#-render-latex-with-katex)
- [📷 Image zoom and lazyload settings](#-image-zoom-and-lazyload-settings)
- [⚓ Markdown render hook](#-markdown-render-hook)
- [📨 Comments area](#-comments-area)
@@ -150,6 +150,8 @@ Inline style:
{{ math >}}
```
+Don't forget to add `math = true` in your front matter or `config.toml`.
+
### 📷 Image zoom and lazyload settings
Zoomable, not lazyloaded:
diff --git a/README_CN.md b/README_CN.md
index 52200ab..e5a135d 100644
--- a/README_CN.md
+++ b/README_CN.md
@@ -20,6 +20,7 @@
- [🎨 站点图标](#-站点图标)
- [❌ License、目录和评论区](#-license目录和评论区)
- [🎵 文章音乐](#-文章音乐)
+ - [📐 LaTeX 渲染](#-latex-渲染)
- [📷 图片放大的设置和 lazyload](#-图片放大的设置和-lazyload)
- [⚓ Markdown 钩子](#-markdown-钩子)
- [📨 评论区](#-评论区)
@@ -105,6 +106,42 @@ showComments = false # 对这篇文章关闭评论
playerCover = "..."
```
+### 📐 LaTeX 渲染
+
+You can write LaTeX directly in markdown with escape characters:
+
+```txt
+$$
+\begin{matrix}
+ a & b \\\\ c & d
+\end{matrix}
+$$
+```
+
+Or use the short code, display style:
+
+```txt
+{{< math >}}
+\begin{matrix}
+ a & b \\
+ c & d
+\end{matrix}
+{{ math >}}
+```
+
+Inline style:
+
+```txt
+{{< math "inline" >}}
+\begin{matrix}
+ a & b \\
+ c & d
+\end{matrix}
+{{ math >}}
+```
+
+Don't forget to add `math = true` in your front matter or `config.toml`.
+
### 📷 图片放大的设置和 lazyload
可放大,非 lazyload:
diff --git a/layouts/partials/scripts-front.html b/layouts/partials/scripts-front.html
index 6b4d78b..c28912a 100644
--- a/layouts/partials/scripts-front.html
+++ b/layouts/partials/scripts-front.html
@@ -1,27 +1,13 @@
-
\ No newline at end of file
diff --git a/static/ie/favicon.ico b/static/ie/favicon.ico
deleted file mode 100644
index 9204300..0000000
Binary files a/static/ie/favicon.ico and /dev/null differ
diff --git a/static/ie/firefox.png b/static/ie/firefox.png
deleted file mode 100644
index eca759d..0000000
Binary files a/static/ie/firefox.png and /dev/null differ
diff --git a/static/ie/index.html b/static/ie/index.html
deleted file mode 100644
index 77528cf..0000000
--- a/static/ie/index.html
+++ /dev/null
@@ -1,123 +0,0 @@
-
-
-
-