shithub: hugo

ref: 7e223b3baaef68d6e6f99e28f162362c81deffba
dir: /docs/layouts/shortcodes/yt.html/

View raw version
<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 }}