mirror of
https://github.com/TrezOne/congo-hindi-gujarati.git
synced 2026-07-21 10:14:13 -04:00
🐛 Update built-in Hugo shortcode refs to remove deprecated warnings
This commit is contained in:
@@ -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 >}}
|
||||
|
||||
Reference in New Issue
Block a user