YouTube Embed Demo.

1 min read

This post demonstrates the new responsive YouTube shortcode.

The Shortcode

You can embed videos using the following syntax:

1
{{< youtube "dQw4w9WgXcQ" >}}

The Result

The embed is fully responsive and adapts to the container width, maintaining a 16:9 aspect ratio. It also features rounded corners to match the blog’s theme.