diff options
author | Bjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com> | 2018-05-23 10:24:01 +0200 |
---|---|---|
committer | Bjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com> | 2018-05-23 10:24:01 +0200 |
commit | bed7a0faff90bbe389629347026853b7bc4c8c3f (patch) | |
tree | ae06e94dc4d3e6dd11adbb0981dc96c043032200 /tpl/tplimpl | |
parent | 35ccf06daeaf86176c1341dde4207c3b11653d7a (diff) |
Remove the id from youtube_simple
For now, anyway.
See #4751
Diffstat (limited to 'tpl/tplimpl')
-rw-r--r-- | tpl/tplimpl/embedded/templates.autogen.go | 3 | ||||
-rw-r--r-- | tpl/tplimpl/embedded/templates/shortcodes/youtube_simple.html | 3 |
2 files changed, 2 insertions, 4 deletions
diff --git a/tpl/tplimpl/embedded/templates.autogen.go b/tpl/tplimpl/embedded/templates.autogen.go index 3f55d2086..9498d8f87 100644 --- a/tpl/tplimpl/embedded/templates.autogen.go +++ b/tpl/tplimpl/embedded/templates.autogen.go @@ -342,8 +342,7 @@ 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 }} {{ $secondClass := "s_youtube_simple" }} -{{ $divID := printf "%s_%d" $secondClass (add $.Ordinal 1) }} -<div class="{{ $secondClass }} {{ $class }}" id="{{ $divID }}"> +<div class="{{ $secondClass }} {{ $class }}"> {{ $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"> diff --git a/tpl/tplimpl/embedded/templates/shortcodes/youtube_simple.html b/tpl/tplimpl/embedded/templates/shortcodes/youtube_simple.html index 4c4629a08..641bd124b 100644 --- a/tpl/tplimpl/embedded/templates/shortcodes/youtube_simple.html +++ b/tpl/tplimpl/embedded/templates/shortcodes/youtube_simple.html @@ -7,8 +7,7 @@ {{ template "__h_simple_css" $ }} {{ end }} {{ $secondClass := "s_youtube_simple" }} -{{ $divID := printf "%s_%d" $secondClass (add $.Ordinal 1) }} -<div class="{{ $secondClass }} {{ $class }}" id="{{ $divID }}"> +<div class="{{ $secondClass }} {{ $class }}"> {{ $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"> |