mirror of
https://github.com/gohugoio/hugo.git
synced 2024-11-21 20:46:30 -05:00
parent
35ccf06dae
commit
bed7a0faff
2 changed files with 2 additions and 4 deletions
|
@ -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" $ }}
|
{{ template "__h_simple_css" $ }}
|
||||||
{{ end }}
|
{{ end }}
|
||||||
{{ $secondClass := "s_youtube_simple" }}
|
{{ $secondClass := "s_youtube_simple" }}
|
||||||
{{ $divID := printf "%s_%d" $secondClass (add $.Ordinal 1) }}
|
<div class="{{ $secondClass }} {{ $class }}">
|
||||||
<div class="{{ $secondClass }} {{ $class }}" id="{{ $divID }}">
|
|
||||||
{{ $tb := printf "//i.ytimg.com/vi/%s/" $id }}
|
{{ $tb := printf "//i.ytimg.com/vi/%s/" $id }}
|
||||||
<a href="//youtube.com/watch?v={{ $id | safeHTMLAttr }}" target="_blank">
|
<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">
|
<img src="{{ printf "%smaxresdefault.jpg" $tb }}" srcset="{{ printf "%shqdefault.jpg" $tb }} 1x {{ printf "%smaxresdefault.jpg" $tb }} 2x" alt="Video">
|
||||||
|
|
|
@ -7,8 +7,7 @@
|
||||||
{{ template "__h_simple_css" $ }}
|
{{ template "__h_simple_css" $ }}
|
||||||
{{ end }}
|
{{ end }}
|
||||||
{{ $secondClass := "s_youtube_simple" }}
|
{{ $secondClass := "s_youtube_simple" }}
|
||||||
{{ $divID := printf "%s_%d" $secondClass (add $.Ordinal 1) }}
|
<div class="{{ $secondClass }} {{ $class }}">
|
||||||
<div class="{{ $secondClass }} {{ $class }}" id="{{ $divID }}">
|
|
||||||
{{ $tb := printf "//i.ytimg.com/vi/%s/" $id }}
|
{{ $tb := printf "//i.ytimg.com/vi/%s/" $id }}
|
||||||
<a href="//youtube.com/watch?v={{ $id | safeHTMLAttr }}" target="_blank">
|
<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">
|
<img src="{{ printf "%smaxresdefault.jpg" $tb }}" srcset="{{ printf "%shqdefault.jpg" $tb }} 1x {{ printf "%smaxresdefault.jpg" $tb }} 2x" alt="Video">
|
||||||
|
|
Loading…
Reference in a new issue