mirror of
https://github.com/TrezOne/congo-hindi-gujarati.git
synced 2026-07-20 18:01:36 -04:00
🐛 Update built-in Hugo shortcode refs to remove deprecated warnings
This commit is contained in:
@@ -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 `gist` shortcode as the built-in Hugo version has been deprecated
|
||||||
- New icon for `kofi` ([#976](https://github.com/jpanther/congo/pull/976))
|
- 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
|
### Changed
|
||||||
|
|
||||||
@@ -21,6 +22,7 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
|
|||||||
### Fixed
|
### 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))
|
- 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
|
## [2.10.0] - 2024-12-06
|
||||||
|
|
||||||
|
|||||||
@@ -13,3 +13,15 @@ summaryLength = 0
|
|||||||
|
|
||||||
[outputs]
|
[outputs]
|
||||||
home = ["HTML", "RSS", "JSON"]
|
home = ["HTML", "RSS", "JSON"]
|
||||||
|
|
||||||
|
[privacy]
|
||||||
|
[privacy.vimeo]
|
||||||
|
enableDNT = true
|
||||||
|
[privacy.x]
|
||||||
|
enableDNT = true
|
||||||
|
[privacy.youTube]
|
||||||
|
privacyEnhanced = true
|
||||||
|
|
||||||
|
[services]
|
||||||
|
[services.x]
|
||||||
|
disableInlineCSS = true
|
||||||
|
|||||||
@@ -13,3 +13,15 @@ summaryLength = 0
|
|||||||
|
|
||||||
[outputs]
|
[outputs]
|
||||||
home = ["HTML", "RSS", "JSON"]
|
home = ["HTML", "RSS", "JSON"]
|
||||||
|
|
||||||
|
[privacy]
|
||||||
|
[privacy.vimeo]
|
||||||
|
enableDNT = true
|
||||||
|
[privacy.x]
|
||||||
|
enableDNT = true
|
||||||
|
[privacy.youTube]
|
||||||
|
privacyEnhanced = true
|
||||||
|
|
||||||
|
[services]
|
||||||
|
[services.x]
|
||||||
|
disableInlineCSS = true
|
||||||
|
|||||||
@@ -25,8 +25,8 @@ By default, the alert is presented with an exclaimation triangle icon. To change
|
|||||||
**Warning!** This action is destructive!
|
**Warning!** This action is destructive!
|
||||||
{{</* /alert */>}}
|
{{</* /alert */>}}
|
||||||
|
|
||||||
{{</* alert "twitter" */>}}
|
{{</* alert "x-twitter" */>}}
|
||||||
Don't forget to [follow me](https://twitter.com/jpanther) on Twitter.
|
Don't forget to [follow me](https://x.com/jpanther) on X.
|
||||||
{{</* /alert */>}}
|
{{</* /alert */>}}
|
||||||
```
|
```
|
||||||
|
|
||||||
@@ -34,8 +34,8 @@ Don't forget to [follow me](https://twitter.com/jpanther) on Twitter.
|
|||||||
**Warning!** This action is destructive!
|
**Warning!** This action is destructive!
|
||||||
{{< /alert >}}
|
{{< /alert >}}
|
||||||
|
|
||||||
{{< alert "twitter" >}}
|
{{< alert "x-twitter" >}}
|
||||||
Don't forget to [follow me](https://twitter.com/jpanther) on Twitter.
|
Don't forget to [follow me](https://x.com/jpanther) on X.
|
||||||
{{< /alert >}}
|
{{< /alert >}}
|
||||||
|
|
||||||
## Badge
|
## Badge
|
||||||
|
|||||||
@@ -16,14 +16,6 @@ Hier ist ein Beispiel des mitgelieferten `youtube`-Shortcodes.
|
|||||||
|
|
||||||
{{< youtube ZJthWmvUzzc >}}
|
{{< 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
|
## Vimeo
|
||||||
|
|
||||||
Der Shortcode `vimeo_simple` bettet ein Video von Vimeo ein.
|
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 >}}
|
{{< 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
|
## Vimeo
|
||||||
|
|
||||||
El shortcode `vimeo_simple` insertará un video de Vimeo.
|
El shortcode `vimeo_simple` insertará un video de Vimeo.
|
||||||
|
|||||||
@@ -16,14 +16,6 @@ Hugoには、リッチコンテンツのためのいくつかの[組み込みシ
|
|||||||
|
|
||||||
{{< youtube ZJthWmvUzzc >}}
|
{{< youtube ZJthWmvUzzc >}}
|
||||||
|
|
||||||
## Twitter
|
|
||||||
|
|
||||||
この例では `twitter_simple` ショートコードを使っています。 `user` と `id` の2つの名前付きパラメーターが必要です。
|
|
||||||
|
|
||||||
{{< twitter_simple user="DesignReviewed" id="1085870671291310081" >}}
|
|
||||||
|
|
||||||
`tweet` ショートコードを使えば、完全にマークアップされたTwitterカードを埋め込むこともできます。
|
|
||||||
|
|
||||||
## Vimeo
|
## Vimeo
|
||||||
|
|
||||||
`vimeo_simple` ショートコードでVimeoの動画を埋め込むことができます。
|
`vimeo_simple` ショートコードでVimeoの動画を埋め込むことができます。
|
||||||
|
|||||||
@@ -12,20 +12,24 @@ Hugo ships with several [built-in shortcodes](https://gohugo.io/content-manageme
|
|||||||
|
|
||||||
## YouTube
|
## 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 >}}
|
{{< 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
|
## 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 >}}
|
{{< youtube ZJthWmvUzzc >}}
|
||||||
|
|
||||||
## Twitter
|
|
||||||
|
|
||||||
这个例子使用了 `twitter_simple` 短代码来输出一条推文。它需要两个命名参数 `user` 和 `id`。
|
|
||||||
|
|
||||||
{{< twitter_simple user="DesignReviewed" id="1085870671291310081" >}}
|
|
||||||
|
|
||||||
或者,可以使用 `tweet` 短代码来嵌入一个完全标记的Twitter卡片。
|
|
||||||
|
|
||||||
## Vimeo
|
## Vimeo
|
||||||
|
|
||||||
`vimeo_simple` 短代码将嵌入Vimeo视频。
|
`vimeo_simple` 短代码将嵌入Vimeo视频。
|
||||||
|
|||||||
Reference in New Issue
Block a user