cleanup shortcode html

This commit is contained in:
Greg Gauthier 2021-11-27 16:25:19 +00:00
parent 31cb15e071
commit 4d2a962e8a
7 changed files with 27 additions and 9 deletions

View File

@ -61,6 +61,12 @@ An image using the built-in "figure" shortcode:
{{< figure src="/img/allan-bloom.jpg" caption="Allan Bloom" width="650px" >}} {{< figure src="/img/allan-bloom.jpg" caption="Allan Bloom" width="650px" >}}
Here's a vanilla video player:
{{</* video "https:\/\/cloud.gmgauthier.com\/index.php\/s\/B5sPam2QnofAFnf\/download\/Peterson_Murphy_Alienation.mp4" */>}}
{{< video "https://cloud.gmgauthier.com/index.php/s/B5sPam2QnofAFnf/download/Peterson_Murphy_Alienation.mp4" >}}
Here's youtube video: Here's youtube video:
{{</* youtube Y9tVfnPHbcQ */>}} {{</* youtube Y9tVfnPHbcQ */>}}

View File

@ -1,4 +1,4 @@
<div style="text-align: center;"> <div style="text-align: center;">
<iframe src="https://anchor.fm/{{ index .Params 0 }}/embed/episodes/{{ index .Params 1 }}" <iframe src="https://anchor.fm/{{ index .Params 0 }}/embed/episodes/{{ index .Params 1 }}"
height="95px" width="425px" frameborder="0" scrolling="no"></iframe> height="95px" width="425px" style="border-width: 0"></iframe>
</div> </div>

View File

@ -1,5 +1,5 @@
<div><center> <div style="text-align: center;">
<audio controls> <audio controls>
<source src="{{ index .Params 0 }}" type="audio/mpeg"> <source src="{{ index .Params 0 }}" type="audio/mpeg">
</audio> </audio>
</center><div> </div>

View File

@ -1,4 +1,7 @@
<center><div> <div style="text-align: center;"><div>
<iframe type="text/html" width="640" height="360" src="https://www.bitchute.com/embed/{{ index .Params 0 }}/" allowfullscreen style="border: none;" scrolling="no" frameborder="0"> <iframe type="text/html" width="640" height="360" style="border-width: 0"
src="https://www.bitchute.com/embed/{{ index .Params 0 }}/"
allowfullscreen>
</iframe> </iframe>
</div></center> </div>
</div>

View File

@ -1,4 +1,4 @@
<div style="text-align: center;"><div class="embed odysee-player"> <div style="text-align: center;"><div class="embed odysee-player">
<iframe class="lbry-iframe" type="text/html" width="640" height="385" <iframe class="lbry-iframe" type="text/html" width="640" height="385" style="border-width: 0"
src="https://odysee.com/$/embed/{{ index .Params 0 }}" allowfullscreen frameborder="0"></iframe> src="https://odysee.com/$/embed/{{ index .Params 0 }}" allowfullscreen></iframe>
</div></div> </div></div>

View File

@ -0,0 +1,8 @@
<div style="text-align: center;">
<figure>
<video controls src="{{ index .Params 0 }}" type="video/mpeg" width="640px" height="385px"
style="border-width: 0">
<figcaption>{{index .Params 1}}</figcaption>
</video>
</figure>
</div>

View File

@ -1,5 +1,6 @@
<div style="text-align: center;"><div class="embed video-player"> <div style="text-align: center;"><div class="embed video-player">
<iframe class="youtube-player" type="text/html" width="640" height="385" src="https://www.youtube.com/embed/{{ index .Params 0 }}" allowfullscreen frameborder="0"> <iframe class="youtube-player" type="text/html" width="640" height="385" style="border-width: 0"
src="https://www.youtube.com/embed/{{ index .Params 0 }}" allowfullscreen>
</iframe> </iframe>
</div> </div>
</div> </div>