hugo-theme-terminal

My Fork of the Terminal Hugo Theme
git clone https://git.repetitions.de/hugo-theme-terminal

video.html (807B)


 1 {{ if .Get "src" }}
 2   <figure class="{{ with .Get "position"}}{{ . }}{{ else -}} left {{- end }}"
 3           style="{{- with .Get "width" -}} width:{{ . }}; {{- end -}}">
 4     <video controls>
 5       <source src="{{ .Get "src"}}">
 6       <p>
 7         Your Browser doesn't support html video. Here's a
 8         <a href="{{ .Get "src"}}" download="{{ .Get "src"}}">
 9           direct link
10         </a>
11         to the video.
12       </p>
13     </video>
14     {{ if .Get "caption" }}
15       <figcaption
16         class="
17                {{ with .Get "captionPosition"}}{{ . }}
18                {{ else -}} center
19                {{- end }}"
20         {{ with .Get "captionStyle" }}
21           style="{{ . | safeCSS }}"
22         {{ end }}>
23         {{ .Get "caption" | safeHTML }}
24       </figcaption>
25     {{ end }}
26   </figure>
27 {{ end }}
28