Add attribute to provide link to video site.

This commit is contained in:
2025-12-24 15:59:51 -07:00
parent 898fb48e7b
commit 521b0a2a16
2 changed files with 8 additions and 3 deletions

View File

@@ -1,12 +1,16 @@
{{ $src := .Param "video_url"
}}{{ $width := .Param "video_width" | default (.Param "odyseeVideoWidthPercentage") }}
}}{{ $width := .Param "video_width" | default (.Param "odyseeVideoWidthPercentage")
}}{{ $url := .Param "video_page"
}}
<p><a href="{{ $url }}" target="_blank" rel="noopener noreferrer">{{ $url | markdownify }}</a></p>
<iframe
id="odysee-iframe"
style="width:{{ $width }}%; aspect-ratio:16 / 9;"
src="{{ $src }}"
allowfullscreen>
</iframe>
<br>
<br/>
{{ with .Params.video_desc }}
{{ range . -}}