Add Peertube module

This commit is contained in:
2022-10-12 12:07:13 +02:00
parent d5c4608a3e
commit ecb99ac711
3 changed files with 20 additions and 0 deletions

View File

@@ -25,4 +25,6 @@ Matinale Musicale de 7:00 à 8:00 place Charles Hernu à Charpennes, sur une id
{{<figure src="/images/2022-10-11/20221011_075140.jpg">}}
{{< /gallery >}}
## Vidéo
{{< peertube src="https://tube.pustule.org/videos/embed/7c3bd887-bf16-4acd-bc6b-baa581311b87?warningTitle=0&p2p=0" >}}

View File

@@ -0,0 +1,5 @@
<figure {{ with .Get "class" }}class="{{ . }}"{{ end }}>
<div class="video_wrapper">
{{ with .Get "src" }}<iframe width="100%" height="100%" src={{ . }} frameborder="0" allowfullscreen="" sandbox="allow-same-origin allow-scripts allow-popups"></iframe>{{ end }}
</div>
</figure>

View File

@@ -23,4 +23,17 @@ img[alt=LogoAbout] {
font-style: italic;
margin-top: -20px;
margin-bottom: 30px;
}
.video_wrapper {
position: relative;
padding-bottom: 56.25%; /* 16:9, for an aspect ratio of 1:1 change to this value to 100% */
}
iframe{
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
}