Note: This site is currently "Under construction". I'm migrating to a new version of my site building software. Lots of things are in a state of disrepair as a result (for example, footnote links aren't working). It's all part of the process of building in public. Most things should still be readable though.

Getting YouTube Autoplay to Work in Hugo Shortcodes

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

Code

{{</* 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`