mirror of
https://github.com/gohugoio/hugo.git
synced 2024-11-14 20:37:55 -05:00
b9bd35d72e
git-subtree-dir: docs git-subtree-split: fdea5430f89dfd849d39212abdf5ace0a4763e5a
11 lines
No EOL
564 B
HTML
11 lines
No EOL
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 }} |