You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
24 lines
787 B
24 lines
787 B
<!DOCTYPE html>
|
|
<html>
|
|
<head>
|
|
<title>{{ .Caption }}</title>
|
|
<meta charset="utf-8">
|
|
<meta name="viewport" content="width=device-width, initial-scale=1, viewport-fit=contain">
|
|
<link rel="stylesheet" href="/css/main.css">
|
|
</head>
|
|
<body class="media">
|
|
{{ if ne .Caption "" }}
|
|
<h1>{{ .Caption }}</h1>
|
|
{{ else }}
|
|
<div><!-- Empty Flex element so that "justify-content: space-between" work as expected --></div>
|
|
{{ end }}
|
|
{{ if eq .Type "photo" }}
|
|
<img src="../../raw/{{ .Files|photo }}" />
|
|
{{ else if eq .Type "video" }}
|
|
<video controls autoplay poster="../../raw/{{ .Files|photo }}">
|
|
<source src="../../raw/{{ .Files|video }}" type="video/mp4">
|
|
</video>
|
|
{{ end }}
|
|
<div><!-- Empty Flex element so that "justify-content: space-between" work as expected --></div>
|
|
</body>
|
|
</html>
|
|
|