{{ post.title }}
-
{% include no-linenos.html content=post.content %}
{{ content | markdownify | strip_html | truncate: 200 | escape }}
diff --git a/_sass/addon/commons.scss b/_sass/addon/commons.scss
index d8e6b4a..528de00 100644
--- a/_sass/addon/commons.scss
+++ b/_sass/addon/commons.scss
@@ -136,7 +136,7 @@ footer {
height: $footer-height;
border-top: 1px solid var(--main-border-color);
- @extend %text-meta;
+ @extend %text-xs;
a {
@extend %text-highlight;
@@ -379,7 +379,7 @@ main {
}
.post-meta {
- @extend %text-meta;
+ @extend %text-sm;
a {
&:not([class]):hover {
diff --git a/_sass/addon/module.scss b/_sass/addon/module.scss
index f1fdd84..d1b7103 100644
--- a/_sass/addon/module.scss
+++ b/_sass/addon/module.scss
@@ -127,10 +127,14 @@
font-weight: 600;
}
-%text-meta {
+%text-sm {
font-size: 0.85rem;
}
+%text-xs {
+ font-size: 0.8rem;
+}
+
%sup-fn-target {
&:target {
background-color: var(--footnote-target-bg);
diff --git a/_sass/layout/post.scss b/_sass/layout/post.scss
index 72a4a46..f44ee89 100644
--- a/_sass/layout/post.scss
+++ b/_sass/layout/post.scss
@@ -40,7 +40,7 @@ h1 + .post-meta {
}
.post-tail-wrapper {
- @extend %text-meta;
+ @extend %text-sm;
margin-top: 6rem;
border-bottom: 1px double var(--main-border-color);
@@ -57,7 +57,7 @@ h1 + .post-meta {
}
span:last-child {
- @extend %text-meta;
+ @extend %text-sm;
}
} /* .license-wrapper */
@@ -297,6 +297,7 @@ h1 + .post-meta {
time {
@extend %normal-font-style;
+ @extend %text-xs;
color: var(--text-muted-color);
}
From d71711d2d32cff03aa85e5bdffefd858ca793468 Mon Sep 17 00:00:00 2001
From: Zheng Yuan <9320285+ZhengYuan-Public@users.noreply.github.com>
Date: Sun, 8 Oct 2023 06:17:59 -0500
Subject: [PATCH 44/46] docs: add more content in Mathematics and fix some
typos (#1306)
1. Add docs for block math and inline math
2. Change a grammar mistake at line 137, the single form should be used
3. Change the comma from Chinese to English for consistency of the doc.
---------
Co-authored-by: Cotes Chung <11371340+cotes2020@users.noreply.github.com>
---
_posts/2019-08-08-write-a-new-post.md | 28 +++++++++++++++++++++++++--
1 file changed, 26 insertions(+), 2 deletions(-)
diff --git a/_posts/2019-08-08-write-a-new-post.md b/_posts/2019-08-08-write-a-new-post.md
index 4812cee..1da7b0d 100644
--- a/_posts/2019-08-08-write-a-new-post.md
+++ b/_posts/2019-08-08-write-a-new-post.md
@@ -107,9 +107,33 @@ math: true
---
```
+After enabling the mathematical feature, you can add math equations with the following syntax:
+
+- **Block math** should be added with `$$ math $$` with **mandatory** blank lines before and after `$$`
+- **Inline math** (in lines) should be added with `$$ math $$` without any blank line before or after `$$`
+- **Inline math** (in lists) should be added with `\$$ math $$`
+
+```markdown
+
+
+$$
+LaTeX_math_expression
+$$
+
+
+
+"Lorem ipsum dolor sit amet, $$ LaTeX_math_expression $$ consectetur adipiscing elit."
+
+
+
+1. \$$ LaTeX_math_expression $$
+2. \$$ LaTeX_math_expression $$
+3. \$$ LaTeX_math_expression $$
+```
+
## Mermaid
-[**Mermaid**](https://github.com/mermaid-js/mermaid) is a great diagrams generation tool. To enable it on your post, add the following to the YAML block:
+[**Mermaid**](https://github.com/mermaid-js/mermaid) is a great diagram generation tool. To enable it on your post, add the following to the YAML block:
```yaml
---
@@ -123,7 +147,7 @@ Then you can use it like other markdown languages: surround the graph code with
### Caption
-Add italics to the next line of an image,then it will become the caption and appear at the bottom of the image:
+Add italics to the next line of an image, then it will become the caption and appear at the bottom of the image:
```markdown
![img-description](/path/to/image)
From e6e2984e7729750859bd649043de58e7bb24cc90 Mon Sep 17 00:00:00 2001
From: Cotes Chung <11371340+cotes2020@users.noreply.github.com>
Date: Mon, 9 Oct 2023 21:12:43 +0800
Subject: [PATCH 45/46] chore(deps): update library versions
See also: https://github.com/cotes2020/chirpy-static-assets/pull/11
---
_data/origin/cors.yml | 6 +++---
assets/lib | 2 +-
2 files changed, 4 insertions(+), 4 deletions(-)
diff --git a/_data/origin/cors.yml b/_data/origin/cors.yml
index 9dd641e..a95ef6b 100644
--- a/_data/origin/cors.yml
+++ b/_data/origin/cors.yml
@@ -23,8 +23,8 @@ bootstrap:
js: https://cdn.jsdelivr.net/npm/bootstrap@5.3.2/dist/js/bootstrap.bundle.min.js
toc:
- css: https://cdn.jsdelivr.net/npm/tocbot@4.21.1/dist/tocbot.min.css
- js: https://cdn.jsdelivr.net/npm/tocbot@4.21.1/dist/tocbot.min.js
+ css: https://cdn.jsdelivr.net/npm/tocbot@4.21.2/dist/tocbot.min.css
+ js: https://cdn.jsdelivr.net/npm/tocbot@4.21.2/dist/tocbot.min.js
fontawesome:
css: https://cdn.jsdelivr.net/npm/@fortawesome/fontawesome-free@6.4.2/css/all.min.css
@@ -33,7 +33,7 @@ search:
js: https://cdn.jsdelivr.net/npm/simple-jekyll-search@1.10.0/dest/simple-jekyll-search.min.js
mermaid:
- js: https://cdn.jsdelivr.net/npm/mermaid@10.4.0/dist/mermaid.min.js
+ js: https://cdn.jsdelivr.net/npm/mermaid@10.5.0/dist/mermaid.min.js
dayjs:
js:
diff --git a/assets/lib b/assets/lib
index fe66cdd..6e3fa73 160000
--- a/assets/lib
+++ b/assets/lib
@@ -1 +1 @@
-Subproject commit fe66cdda15149023a7e2a104283dbae2c656f7e0
+Subproject commit 6e3fa734685f099195b02da912ffa25c04913e41
From 7b7e69a44d7c8fb6961c9e2675aa361519649c55 Mon Sep 17 00:00:00 2001
From: DmitriyFrogo <65223198+DmitriyFrogo@users.noreply.github.com>
Date: Mon, 9 Oct 2023 16:54:04 +0300
Subject: [PATCH 46/46] chore(i18n): update Russian locale (#1308)
---
_data/locales/ru-RU.yml | 46 +++++++++++++++++++++++++----------------
1 file changed, 28 insertions(+), 18 deletions(-)
diff --git a/_data/locales/ru-RU.yml b/_data/locales/ru-RU.yml
index 4377300..185407c 100644
--- a/_data/locales/ru-RU.yml
+++ b/_data/locales/ru-RU.yml
@@ -3,14 +3,14 @@
# ----- Commons label -----
layout:
- post: Публикация
+ post: Пост
category: Категория
tag: Тег
# The tabs of sidebar
tabs:
# format: