Gallery and video support

This commit is contained in:
video-prize-ranch
2022-01-18 16:45:57 -05:00
parent af756d2b0a
commit 87c8618cf5
8 changed files with 48 additions and 3 deletions

View File

@@ -18,7 +18,11 @@
<h3>Try it!</h3>
<a href="/a/H8M4rcp">Album</a>
<ul>
<li><a href="/a/H8M4rcp">Album</a></li>
<li><a href="/gallery/gYiQLWy">Gallery</a></li>
<li><a href="/gallery/cTRwaJU">Video</a></li>
</ul>
<h2>Features</h2>

View File

@@ -42,6 +42,8 @@
</div>-->
</div>
<br>
{{#each album.Media}}
{{#if this.Title}}
<h3>{{this.Title}}</h3>
@@ -51,7 +53,14 @@
{{/if}}
<div class="center">
{{#equal this.Type "image"}}
<img src="{{this.Url}}" loading="lazy">
{{/equal}}
{{#equal this.Type "video"}}
<video controls loop>
<source type="{{this.MimeType}}" src="{{this.Url}}" />
</video>
{{/equal}}
</div>
<br>