Create a partial for auto-generating video pages.

This commit is contained in:
2025-12-24 15:03:39 -07:00
parent 1268e5b697
commit 923d1848ab
4 changed files with 26 additions and 7 deletions

View File

@@ -2,6 +2,10 @@
draft: false
pinned: false
video: true
video_url: https://odysee.com/%24/embed/%40HyperVegan%3A2%2F20251209-HyperVegan-WalkingBreathworkMeditation%3A1?r=FecAgz2kwdVny8bBBcJf5DX7YRPHDKeK
video_desc:
- Walking and breathwork are both very beneficial, so how about doing both together as a form of meditation?
- Filmed, edited, and posted 2025-12-09.
feathericon: film
title: "Walking Breathing Meditation"
subtitle: ""
@@ -20,10 +24,3 @@ categories:
aliases:
- /walking-breathing-meditation
---
{{< odysee
"https://odysee.com/%24/embed/%40HyperVegan%3A2%2F20251209-HyperVegan-WalkingBreathworkMeditation%3A1?r=FecAgz2kwdVny8bBBcJf5DX7YRPHDKeK" >}}
Walking and breathwork are both very beneficial, so how about doing both together as a form of meditation?
Filmed, edited, and posted 2025-12-09.

View File

@@ -71,6 +71,8 @@ params:
authorHyperling: "Chad Michael \"Hyperling\" Greenwood"
authorHyperVegan: "Chad Michael \"HyperVegan\" Greenwood"
authorDefault: "Chad Michael Greenwood"
odyseeVideoWidthPercentage: 80
# End My Custom Params #
taxonomies:

View File

@@ -0,0 +1,17 @@
{{ $src := .Param "video_url"
}}{{ $width := .Param "video_width" | default (.Param "odyseeVideoWidthPercentage") }}
<iframe
id="odysee-iframe"
style="width:{{ $width }}%; aspect-ratio:16 / 9;"
src="{{ $src }}"
allowfullscreen>
</iframe>
<br>
{{ with .Params.video_desc }}
{{ range . -}}
<p>
{{ . }}
</p>
{{ end }}
{{ end }}

View File

@@ -64,6 +64,9 @@
<div class="post-content">
{{ .Content }}
{{ if .Params.video }}
{{ partial "odysee.html" . }}
{{ end }}
</div>
</article>