mirror of
https://github.com/BBaoVanC/bobatheme.git
synced 2024-11-17 13:25:57 -06:00
19 lines
481 B
HTML
19 lines
481 B
HTML
|
<figure>
|
||
|
|
||
|
{{ $vid := $.Page.Resources.GetMatch (.Get "src") | resources.Fingerprint "sha512" }}
|
||
|
|
||
|
{{ if .Get "href" }}<a href="{{ .Get "href" }}">{{ end }}
|
||
|
<video controls>
|
||
|
<source src="{{ $vid.Permalink }}" alt="{{ $vid.Title }}">
|
||
|
{{ i18n "browser_no_video_support" }}
|
||
|
</video>
|
||
|
{{ if .Get "href" }}</a>{{ end }}
|
||
|
|
||
|
{{ with $vid.Title }}
|
||
|
<figcaption>
|
||
|
{{ . | markdownify }}
|
||
|
</figcaption>
|
||
|
{{ end }}
|
||
|
|
||
|
</figure>
|