Files
hugo/layouts/shortcodes/yt.html
T
Bjørn Erik Pedersen 9301947b25 Squashed 'themes/gohugoioTheme/' content from commit 7dd8a302
git-subtree-dir: themes/gohugoioTheme
git-subtree-split: 7dd8a302409a20362e4c610798cc19661b336363
2017-08-10 14:29:32 +02:00

11 lines
564 B
HTML

<div class="video-wrapper" data-streaming="youtube" data-videoid="{{.Get "id"}}" >
<i class="icon-video-play-button shortcode"></i>
{{if (.Get "thumbnail")}}
<div style="background-image:url(/images/thumbnails/{{.Get "thumbnail"}})" alt="YouTube Thumbnail" class="video-thumbnail"></div>
{{else}}
<div style="background-image:url(//img.youtube.com/vi/{{.Get "id"}}/0.jpg)" alt="YouTube Thumbnail" class="video-thumbnail"></div>
{{end}}
</div>
{{ if (.Get "description") }}
<div class="video-description">{{ .Get "description" | markdownify }}</div>
{{ end }}