mirror of
https://github.com/nunocoracao/blowfish.git
synced 2026-01-30 16:31:52 +01:00
Merge pull request #2164 from ZhenShuo2021/docs/update-twitter
📝 Docs: update shortcoode from twitter_simple to x
This commit is contained in:
@@ -17,9 +17,9 @@ Below is an example using the built-in `youtube` shortcode.
|
||||
|
||||
## Twitter
|
||||
|
||||
This example uses the `twitter_simple` shortcode to output a Tweet. It requires two named parameters `user` and `id`.
|
||||
This example uses the `x` shortcode to output a Tweet. It requires two named parameters `user` and `id`.
|
||||
|
||||
{{< twitter_simple user="DesignReviewed" id="1085870671291310081" >}}
|
||||
{{< x user="DesignReviewed" id="1085870671291310081" >}}
|
||||
|
||||
Alternatively, the `tweet` shortcode can be used to embed a fully marked up Twitter card.
|
||||
|
||||
|
||||
@@ -17,9 +17,9 @@ Hugo には、リッチコンテンツのためのいくつかの[組み込み
|
||||
|
||||
## Twitter
|
||||
|
||||
この例はツイートを `twitter_simple` ショートコードを利用して出力しています。こちらは `user` と `id` の二つのパラメータを必須としています。
|
||||
この例はツイートを `x` ショートコードを利用して出力しています。こちらは `user` と `id` の二つのパラメータを必須としています。
|
||||
|
||||
{{< twitter_simple user="DesignReviewed" id="1085870671291310081" >}}
|
||||
{{< x user="DesignReviewed" id="1085870671291310081" >}}
|
||||
|
||||
代わりとして、 `tweet` ショートコードが完全にマークアップされた Twitter カードの埋め込みに利用できます、
|
||||
|
||||
|
||||
@@ -17,9 +17,9 @@ Below is an example using the built-in `youtube` shortcode.
|
||||
|
||||
## Twitter
|
||||
|
||||
This example uses the `twitter_simple` shortcode to output a Tweet. It requires two named parameters `user` and `id`.
|
||||
This example uses the `x` shortcode to output a Tweet. It requires two named parameters `user` and `id`.
|
||||
|
||||
{{< twitter_simple user="DesignReviewed" id="1085870671291310081" >}}
|
||||
{{< x user="DesignReviewed" id="1085870671291310081" >}}
|
||||
|
||||
Alternatively, the `tweet` shortcode can be used to embed a fully marked up Twitter card.
|
||||
|
||||
|
||||
@@ -17,9 +17,9 @@ Hugo 附带了几个用于丰富内容的[内置简码](https://gohugo.io/conten
|
||||
|
||||
## Twitter
|
||||
|
||||
此示例使用 `twitter_simple` 简码来显示推文。它需要两个参数 `user` 和 `id` 。
|
||||
此示例使用 `x` 简码来显示推文。它需要两个参数 `user` 和 `id` 。
|
||||
|
||||
{{< twitter_simple user="DesignReviewed" id="1085870671291310081" >}}
|
||||
{{< x user="DesignReviewed" id="1085870671291310081" >}}
|
||||
|
||||
或者,`tweet` 简码可用于生成嵌入式的 Twitter 卡片。
|
||||
|
||||
|
||||
Reference in New Issue
Block a user