Create a partial for auto-generating video pages.
This commit is contained in:
@@ -2,6 +2,10 @@
|
|||||||
draft: false
|
draft: false
|
||||||
pinned: false
|
pinned: false
|
||||||
video: true
|
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
|
feathericon: film
|
||||||
title: "Walking Breathing Meditation"
|
title: "Walking Breathing Meditation"
|
||||||
subtitle: ""
|
subtitle: ""
|
||||||
@@ -20,10 +24,3 @@ categories:
|
|||||||
aliases:
|
aliases:
|
||||||
- /walking-breathing-meditation
|
- /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.
|
|
||||||
|
|||||||
@@ -71,6 +71,8 @@ params:
|
|||||||
authorHyperling: "Chad Michael \"Hyperling\" Greenwood"
|
authorHyperling: "Chad Michael \"Hyperling\" Greenwood"
|
||||||
authorHyperVegan: "Chad Michael \"HyperVegan\" Greenwood"
|
authorHyperVegan: "Chad Michael \"HyperVegan\" Greenwood"
|
||||||
authorDefault: "Chad Michael Greenwood"
|
authorDefault: "Chad Michael Greenwood"
|
||||||
|
|
||||||
|
odyseeVideoWidthPercentage: 80
|
||||||
# End My Custom Params #
|
# End My Custom Params #
|
||||||
|
|
||||||
taxonomies:
|
taxonomies:
|
||||||
|
|||||||
17
layouts/partials/odysee.html
Normal file
17
layouts/partials/odysee.html
Normal 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 }}
|
||||||
@@ -64,6 +64,9 @@
|
|||||||
|
|
||||||
<div class="post-content">
|
<div class="post-content">
|
||||||
{{ .Content }}
|
{{ .Content }}
|
||||||
|
{{ if .Params.video }}
|
||||||
|
{{ partial "odysee.html" . }}
|
||||||
|
{{ end }}
|
||||||
</div>
|
</div>
|
||||||
</article>
|
</article>
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user