Welcome to mirror list, hosted at ThFree Co, Russian Federation.

video.html « content-type « partials « layouts - github.com/Lednerb/bilberry-hugo-theme.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: ea49b135da0622d7a8d5df16a639428211958ff8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
<a class="bubble" href="{{ .ctx.Permalink }}">
    <i class="fas fa-fw {{or .ctx.Params.icon "fa-video" }}"></i>
</a>

<article class="video">
    {{ partial "featured-image.html" .ctx }}

    {{ with .ctx.Params.youtube }}
        <div class="responsive-video youtube">
            <iframe class="no-js-hidden" src="https://www.youtube-nocookie.com/embed/{{ . }}?rel=0" frameborder="0" allowfullscreen></iframe>

            <div class="no-js-message">
                The youtube player can not be loaded with disabled javascript. <br>
                The following video is embedded here: <br>

                <a href="https://youtube.com/watch?v={{ . }}" target="_blank">
                    https://youtube.com/watch?v={{ . }}
                </a>
            </div>
        </div>
    {{ end }}

    {{ with .ctx.Params.vimeo }}
        <div class="responsive-video vimeo">
            <iframe class="no-js-hidden" src="https://player.vimeo.com/video/{{ . }}" frameborder="0" webkitallowfullscreen mozallowfullscreen allowfullscreen></iframe>

            <div class="no-js-message">
                The vimeo player can not be loaded with disabled javascript. <br>
                The following video is embedded here: <br>

                <a href="https://vimeo.com/{{ . }}" target="_blank">
                    https://vimeo.com/{{ . }}
                </a>
            </div>
        </div>
    {{ end }}

    {{ with .ctx.Params.prezi }}
        <div class="responsive-video prezi">
            <iframe src="https://prezi.com/embed/{{ . }}/" frameborder="0" webkitallowfullscreen mozallowfullscreen allowfullscreen></iframe>
        </div>
    {{ end }}

    {{ if isset .ctx.Params "mp4video" }}
        <div class="responsive-video local">
          <video width="100%" controls poster="{{ .ctx.Params.mp4videoImage }}">
            <source src="{{ .ctx.Params.mp4video }}" type="video/mp4">
            Your browser does not support the video tag.
          </video>
        </div>
    {{ end }}

    {{ partial "default-content.html" (dict "ctx" .ctx "template_type" .template_type) }}
    {{ partial "article-footer.html" .ctx }}
</article>