fixup! refactor: Redirect videos to external PeerTube ref
This commit is contained in:
parent
25add24a88
commit
d8f95dd530
1 changed files with 0 additions and 32 deletions
|
@ -1,32 +0,0 @@
|
||||||
{{ define "main" }}
|
|
||||||
<section class="container-fluid list-main">
|
|
||||||
<div class="container px-5">
|
|
||||||
{{ if eq .Params.storage "yt" }}
|
|
||||||
{{ .Scratch.Set "embedLink" (print "https://www.youtube-nocookie.com/embed/" .Params.storageId) }}
|
|
||||||
{{ end }}
|
|
||||||
{{ if eq .Params.storage "vimeo" }}
|
|
||||||
{{ .Scratch.Set "embedLink" (print "https://player.vimeo.com/video/" .Params.storageId "?color=ffffff") }}
|
|
||||||
{{ end }}
|
|
||||||
{{ if eq .Params.storage "lbry" }}
|
|
||||||
{{ .Scratch.Set "embedLink" (print "https://odysee.com/$/embed/" .Params.storageId) }}
|
|
||||||
{{ end }}
|
|
||||||
{{ if eq .Params.storage "peertube" }}
|
|
||||||
{{ .Scratch.Set "embedLink" (print "https://video.millironx.com/videos/embed/" .Params.storageId) }}
|
|
||||||
{{ end }}
|
|
||||||
<div class="row">
|
|
||||||
<div class="col-12">
|
|
||||||
<div class="ratio ratio-16x9">
|
|
||||||
<iframe
|
|
||||||
src="{{ .Scratch.Get "embedLink" }}"
|
|
||||||
title="{{ .Title }}"
|
|
||||||
allowfullscreen
|
|
||||||
>
|
|
||||||
</iframe>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
{{ .Content }}
|
|
||||||
</div>
|
|
||||||
</section>
|
|
||||||
{{ end }}
|
|
Loading…
Reference in a new issue