2022-03-19 03:01:09 +00:00
|
|
|
{{ define "main" }}
|
|
|
|
|
2022-06-29 03:33:10 +00:00
|
|
|
<section class="container-fluid list-main">
|
|
|
|
<div class="container px-5">
|
|
|
|
|
|
|
|
{{ if eq .Params.storage "yt" }}
|
2022-03-22 00:05:10 +00:00
|
|
|
{{ .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 }}
|
2023-02-02 02:04:55 +00:00
|
|
|
{{ if eq .Params.storage "peertube" }}
|
|
|
|
{{ .Scratch.Set "embedLink" (print "https://video.millironx.com/videos/embed/" .Params.storageId) }}
|
|
|
|
{{ end }}
|
2022-03-22 00:05:10 +00:00
|
|
|
<div class="row">
|
|
|
|
<div class="col-12">
|
|
|
|
<div class="ratio ratio-16x9">
|
|
|
|
<iframe
|
|
|
|
src="{{ .Scratch.Get "embedLink" }}"
|
|
|
|
title="{{ .Title }}"
|
|
|
|
allowfullscreen
|
|
|
|
>
|
|
|
|
</iframe>
|
|
|
|
</div>
|
2022-03-19 03:01:09 +00:00
|
|
|
</div>
|
2022-03-22 00:05:10 +00:00
|
|
|
</div>
|
2022-03-19 03:01:09 +00:00
|
|
|
|
2022-03-22 00:05:10 +00:00
|
|
|
{{ .Content }}
|
2022-06-29 03:33:10 +00:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
</div>
|
|
|
|
</section>
|
|
|
|
|
2022-03-19 03:01:09 +00:00
|
|
|
{{ end }}
|