✏️ Docs: revise exampleSite content "Theme Documentation - Built-in Shortcodes" (#37 #38)

This commit is contained in:
Cell
2022-01-25 15:38:02 +08:00
parent 8c7c0e3e44
commit 29a09b5e0a
2 changed files with 21 additions and 41 deletions
@@ -4,8 +4,8 @@ title: "Theme Documentation - Built-in Shortcodes"
date: 2020-03-04T16:29:41+08:00
lastmod: 2020-03-04T16:29:41+08:00
draft: false
author: "Dillon"
authorLink: "https://dillonzq.com"
author: "Lruihao"
authorLink: "https://lruihao.cn"
description: "Hugo provides multiple built-in shortcodes for author convenience and to keep your markdown content clean."
resources:
- name: "featured-image"
@@ -107,19 +107,7 @@ The rendered output looks like this:
</section>
{{< /highlight >}}
## 4 instagram [Deprecated]
[Documentation of `instagram`](https://gohugo.io/content-management/shortcodes#instagram)
Example `instagram` input:
```markdown
{{</* instagram BWNjjyYFxVx hidecaption */>}}
```
The rendered output looks like this:
## 5 param
## 4 param
[Documentation of `param`](https://gohugo.io/content-management/shortcodes#param)
@@ -133,23 +121,25 @@ The rendered output looks like this:
{{< param description >}}
## 6 ref and relref {#ref-and-relref}
## 5 ref and relref {#ref-and-relref}
[Documentation of `ref` and `relref`](https://gohugo.io/content-management/shortcodes#ref-and-relref)
## 7 tweet [Deprecated]
## 6 tweet
[Documentation of `tweet`](https://gohugo.io/content-management/shortcodes#tweet)
Example `tweet` input:
```markdown
{{</* tweet 877500564405444608 */>}}
{{</* tweet user="SanDiegoZoo" id="1453110110599868418" */>}}
```
The rendered output looks like this:
## 8 vimeo
{{< tweet user="SanDiegoZoo" id="1453110110599868418" >}}
## 7 vimeo
[Documentation of `vimeo`](https://gohugo.io/content-management/shortcodes#vimeo)
@@ -163,7 +153,7 @@ The rendered output looks like this:
{{< vimeo 146022717 >}}
## 9 youtube
## 8 youtube
[Documentation of `youtube`](https://gohugo.io/content-management/shortcodes#youtube)
@@ -2,10 +2,10 @@
weight: 3
title: "主题文档 - 内置 Shortcodes"
date: 2020-03-04T16:29:59+08:00
lastmod: 2020-03-04T16:29:59+08:00
lastmod: 2022-01-25T15:09:59+08:00
draft: false
author: "Dillon"
authorLink: "https://dillonzq.com"
author: "Lruihao"
authorLink: "https://lruihao.cn"
description: "Hugo 提供了多个内置的 Shortcodes, 以方便作者保持 Markdown 内容的整洁。"
resources:
- name: "featured-image"
@@ -108,19 +108,7 @@ Hugo 附带了一组预定义的 shortcodes, 它们实现了一些非常常见
</section>
{{< /highlight >}}
## 4 instagram [Deprecated]
[`instagram` 的文档](https://gohugo.io/content-management/shortcodes#instagram)
一个 `instagram` 示例:
```markdown
{{</* instagram BWNjjyYFxVx hidecaption */>}}
```
呈现的输出效果如下:
## 5 param
## 4 param
[`param` 的文档](https://gohugo.io/content-management/shortcodes#param)
@@ -134,23 +122,25 @@ Hugo 附带了一组预定义的 shortcodes, 它们实现了一些非常常见
{{< param description >}}
## 6 ref 和 relref {#ref-and-relref}
## 5 ref 和 relref {#ref-and-relref}
[`ref` 和 `relref` 的文档](https://gohugo.io/content-management/shortcodes#ref-and-relref)
## 7 tweet [Deprecated]
## 6 tweet
[`tweet` 的文档](https://gohugo.io/content-management/shortcodes#tweet)
一个 `tweet` 示例:
```markdown
{{</* tweet 877500564405444608 */>}}
{{</* tweet user="SanDiegoZoo" id="1453110110599868418" */>}}
```
呈现的输出效果如下:
## 8 vimeo
{{< tweet user="SanDiegoZoo" id="1453110110599868418" >}}
## 7 vimeo
[`vimeo` 的文档](https://gohugo.io/content-management/shortcodes#vimeo)
@@ -164,7 +154,7 @@ Hugo 附带了一组预定义的 shortcodes, 它们实现了一些非常常见
{{< vimeo 146022717 >}}
## 9 youtube
## 8 youtube
[`youtube` 的文档](https://gohugo.io/content-management/shortcodes#youtube)