{{/* If class is set, assume the user wants to provide his own styles. */}}
{{ template "__h_simple_css" $ }}
{{ end }}
-<div class="{{ $class }}">
+{{ $secondClass := "s_youtube_simple" }}
+{{ $divID := printf "%s_%d" $secondClass (add $.Ordinal 1) }}
+<div class="{{ $secondClass }} {{ $class }}" id="{{ $divID }}">
{{ $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">
{{/* If class is set, assume the user wants to provide his own styles. */}}
{{ template "__h_simple_css" $ }}
{{ end }}
-<div class="{{ $class }}">
+{{ $secondClass := "s_youtube_simple" }}
+{{ $divID := printf "%s_%d" $secondClass (add $.Ordinal 1) }}
+<div class="{{ $secondClass }} {{ $class }}" id="{{ $divID }}">
{{ $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">