mirror of
https://github.com/gohugoio/hugo.git
synced 2025-08-29 22:29:56 +02:00
Add YouTube shortcode simple mode
Adapted from the work of @onedrawingperday. See #4616
This commit is contained in:
@@ -76,8 +76,13 @@ type YouTube struct {
|
||||
|
||||
// When you turn on privacy-enhanced mode,
|
||||
// YouTube won’t store information about visitors on your website
|
||||
// unless they play the video.
|
||||
// unless the user plays the embedded video.
|
||||
PrivacyEnhanced bool
|
||||
|
||||
// If simple mode is enabled, only a thumbnail is fetched from ytimg.com and
|
||||
// shown with a play button overlaid. If a user clicks the button, he/she will
|
||||
// be taken to the video page on youtube.com in a new browser tab.
|
||||
Simple bool
|
||||
}
|
||||
|
||||
func DecodeConfig(cfg config.Provider) (pc Config, err error) {
|
||||
|
Reference in New Issue
Block a user