🐛 Update built-in Hugo shortcode refs to remove deprecated warnings

This commit is contained in:
James Panther
2025-02-24 10:46:10 +11:00
parent b60a76f1f7
commit 1451a3ff50
9 changed files with 41 additions and 43 deletions
+2
View File
@@ -10,6 +10,7 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
- New `gist` shortcode as the built-in Hugo version has been deprecated
- New icon for `kofi` ([#976](https://github.com/jpanther/congo/pull/976))
- Privacy and Services params in bundled `config.toml` to provide sensible defaults for built-in Hugo shortcodes
### Changed
@@ -21,6 +22,7 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
### Fixed
- Minor documentation errors and omissions ([#985](https://github.com/jpanther/congo/pull/985), [#1005](https://github.com/jpanther/congo/pull/1005), [#1007](https://github.com/jpanther/congo/pull/1007))
- References to deprecated `twitter` shortcodes and replaced them with `x`
## [2.10.0] - 2024-12-06
+12
View File
@@ -13,3 +13,15 @@ summaryLength = 0
[outputs]
home = ["HTML", "RSS", "JSON"]
[privacy]
[privacy.vimeo]
enableDNT = true
[privacy.x]
enableDNT = true
[privacy.youTube]
privacyEnhanced = true
[services]
[services.x]
disableInlineCSS = true
+12
View File
@@ -13,3 +13,15 @@ summaryLength = 0
[outputs]
home = ["HTML", "RSS", "JSON"]
[privacy]
[privacy.vimeo]
enableDNT = true
[privacy.x]
enableDNT = true
[privacy.youTube]
privacyEnhanced = true
[services]
[services.x]
disableInlineCSS = true
+4 -4
View File
@@ -25,8 +25,8 @@ By default, the alert is presented with an exclaimation triangle icon. To change
**Warning!** This action is destructive!
{{</* /alert */>}}
{{</* alert "twitter" */>}}
Don't forget to [follow me](https://twitter.com/jpanther) on Twitter.
{{</* alert "x-twitter" */>}}
Don't forget to [follow me](https://x.com/jpanther) on X.
{{</* /alert */>}}
```
@@ -34,8 +34,8 @@ Don't forget to [follow me](https://twitter.com/jpanther) on Twitter.
**Warning!** This action is destructive!
{{< /alert >}}
&nbsp;
{{< alert "twitter" >}}
Don't forget to [follow me](https://twitter.com/jpanther) on Twitter.
{{< alert "x-twitter" >}}
Don't forget to [follow me](https://x.com/jpanther) on X.
{{< /alert >}}
## Badge
@@ -16,14 +16,6 @@ Hier ist ein Beispiel des mitgelieferten `youtube`-Shortcodes.
{{< youtube ZJthWmvUzzc >}}
## Twitter
Dieses Beispiel verwendet den Shortcode `twitter_simple`, um einen Tweet anzuzeigen. Er benötigt zwei benannte Parameter `user` und `id`.
{{< twitter_simple user="DesignReviewed" id="1085870671291310081" >}}
Alternativ kann der Shortcode `tweet` verwendet werden, um eine vollständig formatierte Twitter-Kachel einzubetten.
## Vimeo
Der Shortcode `vimeo_simple` bettet ein Video von Vimeo ein.
@@ -16,14 +16,6 @@ A continuación, se muestra un ejemplo que utiliza el shortcut integrado `youtub
{{< youtube ZJthWmvUzzc >}}
## Twitter
Este ejemplo usa el shortcode `twitter_simple` para generar un Tweet. Requiere dos parámetros por nombre: `usuario` e `id`.
{{< twitter_simple user="DesignReviewed" id="1085870671291310081" >}}
Alternativamente, el shortcut `tweet` se puede usar para incrustar una tarjeta completa de Twitter.
## Vimeo
El shortcode `vimeo_simple` insertará un video de Vimeo.
@@ -16,14 +16,6 @@ Hugoには、リッチコンテンツのためのいくつかの[組み込みシ
{{< youtube ZJthWmvUzzc >}}
## Twitter
この例では `twitter_simple` ショートコードを使っています。 `user``id` の2つの名前付きパラメーターが必要です。
{{< twitter_simple user="DesignReviewed" id="1085870671291310081" >}}
`tweet` ショートコードを使えば、完全にマークアップされたTwitterカードを埋め込むこともできます。
## Vimeo
`vimeo_simple` ショートコードでVimeoの動画を埋め込むことができます。
@@ -12,20 +12,24 @@ Hugo ships with several [built-in shortcodes](https://gohugo.io/content-manageme
## YouTube
Below is an example using the built-in `youtube` shortcode.
Below is an example using the built-in `youtube` shortcode. It requires only the video ID.
{{< youtube ZJthWmvUzzc >}}
## Twitter
## X (formerly 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.
## Instagram
The `instagram` shortcode will embed an Instagram post. It requires only the post ID.
{{< instagram CxOWiQNP2MO >}}
## Vimeo
The `vimeo_simple` shortcode will embed a Vimeo video.
The `vimeo` shortcode will embed a Vimeo video. It requires only the video ID.
{{< vimeo_simple 48912912 >}}
{{< vimeo 48912912 >}}
@@ -16,14 +16,6 @@ Hugo包含了多个[内置短代码](https://gohugo.io/content-management/shortc
{{< youtube ZJthWmvUzzc >}}
## Twitter
这个例子使用了 `twitter_simple` 短代码来输出一条推文。它需要两个命名参数 `user``id`
{{< twitter_simple user="DesignReviewed" id="1085870671291310081" >}}
或者,可以使用 `tweet` 短代码来嵌入一个完全标记的Twitter卡片。
## Vimeo
`vimeo_simple` 短代码将嵌入Vimeo视频。