Line | |
---|
1 | <a class="bubble" href="{{ .ctx.Permalink }}"> |
---|
2 | <i class="fas fa-fw {{or .ctx.Params.icon "fa-video" }}"></i> |
---|
3 | </a> |
---|
4 | |
---|
5 | <article class="video"> |
---|
6 | {{ partial "featured-image.html" .ctx }} |
---|
7 | |
---|
8 | {{ with .ctx.Params.youtube }} |
---|
9 | {{ partial "video-embed" (dict "type" "youtube" "id" .) }} |
---|
10 | {{ end }} |
---|
11 | |
---|
12 | {{ with .ctx.Params.vimeo }} |
---|
13 | {{ partial "video-embed" (dict "type" "vimeo" "id" .) }} |
---|
14 | {{ end }} |
---|
15 | |
---|
16 | {{ with .ctx.Params.prezi }} |
---|
17 | {{ partial "video-embed" (dict "type" "prezi" "id" .) }} |
---|
18 | {{ end }} |
---|
19 | |
---|
20 | {{ with .ctx.Params.bilibili }} |
---|
21 | {{ partial "video-embed" (dict "type" "bilibili" "id" .) }} |
---|
22 | {{ end }} |
---|
23 | |
---|
24 | {{ with .ctx.Params.peertube }} |
---|
25 | {{ partial "video-embed" (dict "type" "peertube" "id" .) }} |
---|
26 | {{ end }} |
---|
27 | |
---|
28 | {{ if isset .ctx.Params "mp4video" }} |
---|
29 | {{ partial "video-embed" (dict "type" "mp4" "url" .ctx.Params.mp4video "imageUrl" .ctx.Params.mp4videoImage) }} |
---|
30 | {{ end }} |
---|
31 | |
---|
32 | {{ partial "default-content.html" (dict "ctx" .ctx "template_type" .template_type) }} |
---|
33 | {{ partial "article-footer.html" .ctx }} |
---|
34 | </article> |
---|
Note: See
TracBrowser for help on using the repository browser.