Add Peertube module
This commit is contained in:
@@ -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" >}}
|
||||
|
||||
|
||||
5
layouts/shortcodes/peertube.html
Normal file
5
layouts/shortcodes/peertube.html
Normal 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>
|
||||
@@ -24,3 +24,16 @@ img[alt=LogoAbout] {
|
||||
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%;
|
||||
}
|
||||
Reference in New Issue
Block a user