Getting YouTube Autoplay to Work in Hugo Shortcodes
Hugo offers a shortcode to automatically embed YouTube videos. The basic call looks like this :
go
https : //gohugo.io/content - management/shortcodes/#example - youtube - input
As of version 0.75.1, when you set Hugo's YouTube shortcode ` autoplay=true `
< iframe width="560" height="315" src="https : //www.youtube.com/embed/Al7PxVscCog?&autoplay=1"frameborder="0" allowfullscreen > < /iframe >