Getting YouTube Autoplay to Work in Hugo Shortcodes

October - 2020

Hugo offers a shortcode to automatically embed YouTube videos. The basic call looks like this:

{{</* youtube 12345 */>}}

https://gohugo.io/content-management/shortcodes/#example-youtube-input

As of version 0.75.1, when you set Hugo's YouTube shortcode autoplay=true