diff options
author | Joe Mooring <[email protected]> | 2024-04-03 13:09:11 -0700 |
---|---|---|
committer | Bjørn Erik Pedersen <[email protected]> | 2024-04-04 11:08:30 +0200 |
commit | 8a0ea12d8a906bd41b4cd7108651efc4fb9be237 (patch) | |
tree | 4475d2066482d200d9c8eb44fb31b1ee0a5167b9 /hugolib | |
parent | 6f07e5976de426c9637e77e3ae912df342c2b782 (diff) | |
download | hugo-8a0ea12d8a906bd41b4cd7108651efc4fb9be237.tar.gz hugo-8a0ea12d8a906bd41b4cd7108651efc4fb9be237.zip |
tpl/tplimpl: Improve youtube shortcode
Changes:
- Add query string params for controls, loop, mute, start, and end
- Add iframe loading attribute
- Obtain default iframe title from YouTube oEmbed API
- Fix autoplay feature
- Improve readability
Closes #3694
Closes #9213
Closes #10520
Closes #10575
Closes #10576
Co-authored-by: sgharms <[email protected]>
Diffstat (limited to 'hugolib')
-rw-r--r-- | hugolib/embedded_shortcodes_test.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/hugolib/embedded_shortcodes_test.go b/hugolib/embedded_shortcodes_test.go index 5188be2c9..198c31ae8 100644 --- a/hugolib/embedded_shortcodes_test.go +++ b/hugolib/embedded_shortcodes_test.go @@ -67,7 +67,7 @@ package main ## YouTube -{{< youtube PArFPgHrNZM >}} +{{< youtube 0RKpf3rK57I >}} ## Param @@ -83,7 +83,7 @@ Content: {{ .Content }}| https://gist.github.com/spf13/7896402.js <span style="color:#a6e22e">main</span></span> https://t.co/X94FmYDEZJ -https://www.youtube.com/embed/PArFPgHrNZM +https://www.youtube.com/embed/0RKpf3rK57I Foo: bar |