From 1c2abf59d053c5d3edc0953e3ce633631eb3133e Mon Sep 17 00:00:00 2001
From: Junyi Hou
Date: Tue, 9 Apr 2024 20:22:36 +0800
Subject: [PATCH] update example posts
---
exampleSiteMultilingual/content/archives.md | 5 -
...moji-support.pl.md => emoji-support.zh.md} | 17 +-
.../content/posts/markdown-syntax.md | 43 ++++--
.../content/posts/markdown-syntax.pl.md | 145 ------------------
.../content/posts/math-typesetting.pl.md | 44 ------
.../content/posts/placeholder-text.pl.md | 58 -------
.../content/posts/rich-content.pl.md | 34 ----
7 files changed, 39 insertions(+), 307 deletions(-)
delete mode 100644 exampleSiteMultilingual/content/archives.md
rename exampleSiteMultilingual/content/posts/{emoji-support.pl.md => emoji-support.zh.md} (83%)
delete mode 100644 exampleSiteMultilingual/content/posts/markdown-syntax.pl.md
delete mode 100644 exampleSiteMultilingual/content/posts/math-typesetting.pl.md
delete mode 100644 exampleSiteMultilingual/content/posts/placeholder-text.pl.md
delete mode 100644 exampleSiteMultilingual/content/posts/rich-content.pl.md
diff --git a/exampleSiteMultilingual/content/archives.md b/exampleSiteMultilingual/content/archives.md
deleted file mode 100644
index db16eed..0000000
--- a/exampleSiteMultilingual/content/archives.md
+++ /dev/null
@@ -1,5 +0,0 @@
----
-date: 2019-05-28
-type: section
-layout: "archives"
----
diff --git a/exampleSiteMultilingual/content/posts/emoji-support.pl.md b/exampleSiteMultilingual/content/posts/emoji-support.zh.md
similarity index 83%
rename from exampleSiteMultilingual/content/posts/emoji-support.pl.md
rename to exampleSiteMultilingual/content/posts/emoji-support.zh.md
index 119346a..5c11cf4 100644
--- a/exampleSiteMultilingual/content/posts/emoji-support.pl.md
+++ b/exampleSiteMultilingual/content/posts/emoji-support.zh.md
@@ -1,6 +1,6 @@
+++
author = "Hugo Authors"
-title = "Emoji Support"
+title = "Emoji 支持"
date = "2019-03-05"
description = "Guide to emoji usage in Hugo"
tags = [
@@ -8,13 +8,14 @@ tags = [
]
+++
-Emoji can be enabled in a Hugo project in a number of ways.
+在 Hugo 博客里,你可以用多种方式使用 Emoji:
+
+
The [`emojify`](https://gohugo.io/functions/emojify/) function can be called directly in templates or [Inline Shortcodes](https://gohugo.io/templates/shortcode-templates/#inline-shortcodes).
To enable emoji globally, set `enableEmoji` to `true` in your site’s [configuration](https://gohugo.io/getting-started/configuration/) and then you can type emoji shorthand codes directly in content files; e.g.
-
🙈 :see_no_evil:
🙉 :hear_no_evil:
🙊 :speak_no_evil:
@@ -33,14 +34,14 @@ font-family: Apple Color Emoji,Segoe UI Emoji,NotoColorEmoji,Segoe UI Symbol,And
{{< css.inline >}}
diff --git a/exampleSiteMultilingual/content/posts/markdown-syntax.md b/exampleSiteMultilingual/content/posts/markdown-syntax.md
index e68d10e..9524293 100644
--- a/exampleSiteMultilingual/content/posts/markdown-syntax.md
+++ b/exampleSiteMultilingual/content/posts/markdown-syntax.md
@@ -26,10 +26,23 @@ This article offers a sample of basic Markdown syntax that can be used in Hugo c
The following HTML ``—`` elements represent six levels of section headings. `` is the highest section level while `` is the lowest.
# H1
+
+You should not use `# H1` in your markdown file, since the title is `#H1`.
+
+If you use, you will get a warning from linter:
+
+```txt
+MD025/single-title/single-h1: Multiple top-level headings in the same document
+```
+
## H2
+
### H3
+
#### H4
+
##### H5
+
###### H6
## Paragraph
@@ -42,9 +55,10 @@ Itatur? Quiatae cullecum rem ent aut odis in re eossequodi nonsequ idebis ne sap
The blockquote element represents content that is quoted from another source, optionally with a citation which must be within a `footer` or `cite` element, and optionally with in-line changes such as annotations and abbreviations.
-#### Blockquote without attribution
+### Blockquote without attribution
> Tiam, ad mint andaepu dandae nostion secatur sequo quae.
+>
> **Note** that you can use *Markdown syntax* within a blockquote.
#### Blockquote with attribution
@@ -52,7 +66,6 @@ The blockquote element represents content that is quoted from another source, op
> Don't communicate by sharing memory, share memory by communicating.
> — Rob Pike[^1]
-
[^1]: The above quote is excerpted from Rob Pike's [talk](https://www.youtube.com/watch?v=PAAkCSZUG1c) during Gopherfest, November 18, 2015.
## Tables
@@ -61,18 +74,18 @@ Tables aren't part of the core Markdown spec, but Hugo supports supports them ou
Name | Age
--------|------
- Bob | 27
+ Bob | 27
Alice | 23
-#### Inline Markdown within tables
+### Inline Markdown within tables
-| Inline | Markdown | In | Table |
-| ---------- | --------- | ----------------- | ---------- |
-| *italics* | **bold** | ~~strikethrough~~ | `code` |
+ Inline | Markdown | In | Table
+---------- | --------- | ----------------- | ----------
+*italics* | **bold** | ~~strikethrough~~ | `code`
## Code Blocks
-#### Code block with backticks
+### Code block with backticks
```html
@@ -86,7 +99,8 @@ Tables aren't part of the core Markdown spec, but Hugo supports supports them ou