🐛 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
@@ -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 >}}