From bc6d4d86c7d97b2cdd48547958251ffe1c98e410 Mon Sep 17 00:00:00 2001 From: ZhenShuo Leo <98386542+ZhenShuo2021@users.noreply.github.com> Date: Mon, 26 May 2025 13:06:36 +0800 Subject: [PATCH] =?UTF-8?q?=F0=9F=93=9D=20docs:=20update=20shortcoode=20fr?= =?UTF-8?q?om=20twitter=5Fsimple=20to=20x?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- exampleSite/content/samples/rich-content/index.it.md | 4 ++-- exampleSite/content/samples/rich-content/index.ja.md | 4 ++-- exampleSite/content/samples/rich-content/index.md | 4 ++-- exampleSite/content/samples/rich-content/index.zh-cn.md | 4 ++-- 4 files changed, 8 insertions(+), 8 deletions(-) diff --git a/exampleSite/content/samples/rich-content/index.it.md b/exampleSite/content/samples/rich-content/index.it.md index d46b16d0..1f2c7ae9 100755 --- a/exampleSite/content/samples/rich-content/index.it.md +++ b/exampleSite/content/samples/rich-content/index.it.md @@ -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. diff --git a/exampleSite/content/samples/rich-content/index.ja.md b/exampleSite/content/samples/rich-content/index.ja.md index 9bffca8a..bf0dc571 100755 --- a/exampleSite/content/samples/rich-content/index.ja.md +++ b/exampleSite/content/samples/rich-content/index.ja.md @@ -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 カードの埋め込みに利用できます、 diff --git a/exampleSite/content/samples/rich-content/index.md b/exampleSite/content/samples/rich-content/index.md index d46b16d0..1f2c7ae9 100755 --- a/exampleSite/content/samples/rich-content/index.md +++ b/exampleSite/content/samples/rich-content/index.md @@ -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. diff --git a/exampleSite/content/samples/rich-content/index.zh-cn.md b/exampleSite/content/samples/rich-content/index.zh-cn.md index f366759f..c80edddf 100755 --- a/exampleSite/content/samples/rich-content/index.zh-cn.md +++ b/exampleSite/content/samples/rich-content/index.zh-cn.md @@ -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 卡片。