mirror of
https://github.com/gohugoio/hugo.git
synced 2024-11-28 23:42:11 -05:00
parent
88e3568680
commit
69ee6b41e3
2 changed files with 4 additions and 4 deletions
|
@ -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" $ }}
|
{{ template "__h_simple_css" $ }}
|
||||||
{{ end }}
|
{{ end }}
|
||||||
<div class="{{ $class }}">
|
<div class="{{ $class }}">
|
||||||
{{ $tb := printf "https://i.ytimg.com/vi/%s/" $id }}
|
{{ $tb := printf "//i.ytimg.com/vi/%s/" $id }}
|
||||||
<a href="https://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">
|
||||||
<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>`},
|
<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 -}}
|
{`twitter_cards.html`, `{{- with $.Params.images -}}
|
||||||
|
|
|
@ -7,7 +7,7 @@
|
||||||
{{ template "__h_simple_css" $ }}
|
{{ template "__h_simple_css" $ }}
|
||||||
{{ end }}
|
{{ end }}
|
||||||
<div class="{{ $class }}">
|
<div class="{{ $class }}">
|
||||||
{{ $tb := printf "https://i.ytimg.com/vi/%s/" $id }}
|
{{ $tb := printf "//i.ytimg.com/vi/%s/" $id }}
|
||||||
<a href="https://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">
|
||||||
<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>
|
<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>
|
Loading…
Reference in a new issue