From ceaff7cafc5357274e546984ae02a4cbdf305f81 Mon Sep 17 00:00:00 2001 From: Alex Date: Wed, 30 May 2018 13:10:23 +0300 Subject: [PATCH] tpl: Remove frameborder attr YT iframe + CSS fixes --- hugolib/embedded_shortcodes_test.go | 6 +++--- tpl/tplimpl/embedded/templates.autogen.go | 4 ++-- tpl/tplimpl/embedded/templates/shortcodes/youtube.html | 4 ++-- 3 files changed, 7 insertions(+), 7 deletions(-) diff --git a/hugolib/embedded_shortcodes_test.go b/hugolib/embedded_shortcodes_test.go index fb1bd1282..3de93eef9 100644 --- a/hugolib/embedded_shortcodes_test.go +++ b/hugolib/embedded_shortcodes_test.go @@ -197,17 +197,17 @@ func TestShortcodeYoutube(t *testing.T) { }{ { `{{< youtube w7Ft2ymGmfc >}}`, - "(?s)\n
.*?.*?
\n", + "(?s)\n
.*?.*?
\n", }, // set class { `{{< youtube w7Ft2ymGmfc video>}}`, - "(?s)\n
.*?.*?
\n", + "(?s)\n
.*?.*?
\n", }, // set class and autoplay (using named params) { `{{< youtube id="w7Ft2ymGmfc" class="video" autoplay="true" >}}`, - "(?s)\n
.*?.*?
", + "(?s)\n
.*?.*?
", }, } { var ( diff --git a/tpl/tplimpl/embedded/templates.autogen.go b/tpl/tplimpl/embedded/templates.autogen.go index 2aa7e4064..e9fcc3325 100644 --- a/tpl/tplimpl/embedded/templates.autogen.go +++ b/tpl/tplimpl/embedded/templates.autogen.go @@ -432,8 +432,8 @@ if (!doNotTrack) { {{- $ytHost := cond $pc.PrivacyEnhanced "www.youtube-nocookie.com" "www.youtube.com" -}} {{- $id := .Get "id" | default (.Get 0) -}} {{- $class := .Get "class" | default (.Get 1) }} -
- +
+
{{ end -}} `}, diff --git a/tpl/tplimpl/embedded/templates/shortcodes/youtube.html b/tpl/tplimpl/embedded/templates/shortcodes/youtube.html index 9ba38fa8c..ff268c511 100755 --- a/tpl/tplimpl/embedded/templates/shortcodes/youtube.html +++ b/tpl/tplimpl/embedded/templates/shortcodes/youtube.html @@ -3,7 +3,7 @@ {{- $ytHost := cond $pc.PrivacyEnhanced "www.youtube-nocookie.com" "www.youtube.com" -}} {{- $id := .Get "id" | default (.Get 0) -}} {{- $class := .Get "class" | default (.Get 1) }} -
- +
+
{{ end -}}