summaryrefslogtreecommitdiffstats
path: root/tpl
diff options
context:
space:
mode:
authorBjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com>2018-05-21 22:25:04 +0200
committerBjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com>2018-05-21 22:25:04 +0200
commit69ee6b41e36625595e2bcabcde0bc58663e5b93c (patch)
treec458a327c3dc750fd2a4ccdf7725e338818eeb39 /tpl
parent88e356868062cc618385cd22b6730df2459518cd (diff)
Make the simple mode YouTube links schemaless
See #4616
Diffstat (limited to 'tpl')
-rw-r--r--tpl/tplimpl/embedded/templates.autogen.go4
-rw-r--r--tpl/tplimpl/embedded/templates/shortcodes/youtube_simple.html4
2 files changed, 4 insertions, 4 deletions
diff --git a/tpl/tplimpl/embedded/templates.autogen.go b/tpl/tplimpl/embedded/templates.autogen.go
index 865859b49..de0e21c5a 100644
--- a/tpl/tplimpl/embedded/templates.autogen.go
+++ b/tpl/tplimpl/embedded/templates.autogen.go
@@ -342,8 +342,8 @@ M66.52,7.74c-0.78-2.93-2.49-5.41-5.42-6.19C55.79,.13,34,0,34,0S12.21,.13,6.9,1.5
{{ template "__h_simple_css" $ }}
{{ end }}
<div class="{{ $class }}">
-{{ $tb := printf "https://i.ytimg.com/vi/%s/" $id }}
-<a href="https://youtube.com/watch?v={{ $id | safeHTMLAttr }}" target="_blank">
+{{ $tb := printf "//i.ytimg.com/vi/%s/" $id }}
+<a href="//youtube.com/watch?v={{ $id | safeHTMLAttr }}" target="_blank">
<img src="{{ printf "%smaxresdefault.jpg" $tb }}" srcset="{{ printf "%shqdefault.jpg" $tb }} 1x {{ printf "%smaxresdefault.jpg" $tb }} 2x" alt="Video">
<div class="play"><svg height="100%" version="1.1" viewBox="0 0 68 48" width="100%"><path class="ytp-large-play-button-bg" d="{{ template "__h_simple_icon_play" $ }}" fill="#212121" fill-opacity="0.8"></path><path d="M 45,24 27,14 27,34" fill="#fff"></path></svg></div></a></div>`},
{`twitter_cards.html`, `{{- with $.Params.images -}}
diff --git a/tpl/tplimpl/embedded/templates/shortcodes/youtube_simple.html b/tpl/tplimpl/embedded/templates/shortcodes/youtube_simple.html
index 15c684619..0659cc94a 100644
--- a/tpl/tplimpl/embedded/templates/shortcodes/youtube_simple.html
+++ b/tpl/tplimpl/embedded/templates/shortcodes/youtube_simple.html
@@ -7,7 +7,7 @@
{{ template "__h_simple_css" $ }}
{{ end }}
<div class="{{ $class }}">
-{{ $tb := printf "https://i.ytimg.com/vi/%s/" $id }}
-<a href="https://youtube.com/watch?v={{ $id | safeHTMLAttr }}" target="_blank">
+{{ $tb := printf "//i.ytimg.com/vi/%s/" $id }}
+<a href="//youtube.com/watch?v={{ $id | safeHTMLAttr }}" target="_blank">
<img src="{{ printf "%smaxresdefault.jpg" $tb }}" srcset="{{ printf "%shqdefault.jpg" $tb }} 1x {{ printf "%smaxresdefault.jpg" $tb }} 2x" alt="Video">
<div class="play"><svg height="100%" version="1.1" viewBox="0 0 68 48" width="100%"><path class="ytp-large-play-button-bg" d="{{ template "__h_simple_icon_play" $ }}" fill="#212121" fill-opacity="0.8"></path><path d="M 45,24 27,14 27,34" fill="#fff"></path></svg></div></a></div> \ No newline at end of file