mirror of
https://github.com/by-jp/www.byjp.me.git
synced 2025-08-23 02:23:08 +01:00
11 lines
No EOL
549 B
HTML
11 lines
No EOL
549 B
HTML
<figure>
|
|
{{ if hasSuffix .src ".mp4" }}
|
|
<video controls loop class="u-video">
|
|
<source src="{{.src}}" type="video/mp4">
|
|
<img {{ if .searchmeta | default true }}data-pagefind-meta="image[src]" {{end}}src="{{ .src }}.webp" />
|
|
(Your browser can't play videos. <a href="{{.src}}">Download instead</a>.)
|
|
</video>
|
|
{{ else }}
|
|
<img {{ if .searchmeta | default true }}data-pagefind-meta="image[src]" {{end}}src="{{ .src }}" {{ with .alt}}alt="{{ . }}" {{ end }}class="u-photo photo" />
|
|
{{ end }}
|
|
</figure> |