mirror of
https://github.com/softinio/softinio.com.git
synced 2025-08-31 17:26:42 -07:00
Updates to site & add blog about peertube
This commit is contained in:
parent
e814db512d
commit
4fef455571
10 changed files with 81 additions and 24 deletions
|
@ -1,14 +0,0 @@
|
|||
{{ if .IsNamedParams -}}
|
||||
<div style="position: relative; padding-bottom: 56.25%; margin-bottom: 1rem; height: 0; overflow: hidden;">
|
||||
<iframe sandbox="allow-scripts allow-popups" style="position: absolute; top: 0; left: 0; width: 100%; height: 100%; border:0;"
|
||||
src="https://{{ .Get "host" }}/videos/embed/{{ .Get "id" }}?{{ with .Get "title" }}title={{ . }}{{ else }}title=0{{ end }}&{{ with .Get "warning" }}warningTitle={{ . }}{{ else }}warningTitle=0{{ end }}{{ with .Get "subtitle" }}&subtitle={{ . }}{{ end }}&peertubeLink=0" allowfullscreen>
|
||||
</iframe>
|
||||
</div>
|
||||
{{- else -}}
|
||||
<div style="position: relative; padding-bottom: 56.25%; margin-bottom: 1rem; height: 0; overflow: hidden;">
|
||||
<iframe sandbox="allow-scripts allow-popups" style="position: absolute; top: 0; left: 0; width: 100%; height: 100%; border:0;"
|
||||
src="https://{{ .Get 0 }}/videos/embed/{{ .Get 1 }}?title=0&warningTitle=0&peertubeLink=0" title="Peertube Video" allowfullscreen>
|
||||
</iframe>
|
||||
</div>
|
||||
{{- end }}
|
||||
|
14
layouts/shortcodes/peertube.html
Normal file
14
layouts/shortcodes/peertube.html
Normal file
|
@ -0,0 +1,14 @@
|
|||
{{ if .IsNamedParams -}}
|
||||
<div style="position: relative; padding-bottom: 56.25%; margin-bottom: 1rem; height: 0; overflow: hidden;">
|
||||
<iframe sandbox="allow-same-origin allow-scripts allow-popups" style="position: absolute; top: 0; left: 0; width: 100%; height: 100%; border:0;"
|
||||
src="https://watch.softinio.com/videos/embed/{{ .Get "id" }}?{{ with .Get "title" }}title={{ . }}{{ else }}title=0{{ end }}&{{ with .Get "warning" }}warningTitle={{ . }}{{ else }}warningTitle=0{{ end }}{{ with .Get "subtitle" }}&subtitle={{ . }}{{ end }}&peertubeLink=0" allowfullscreen>
|
||||
</iframe>
|
||||
</div>
|
||||
{{- else -}}
|
||||
<div style="position: relative; padding-bottom: 56.25%; margin-bottom: 1rem; height: 0; overflow: hidden;">
|
||||
<iframe sandbox="allow-same-origin allow-scripts allow-popups" style="position: absolute; top: 0; left: 0; width: 100%; height: 100%; border:0;"
|
||||
src="https://watch.softinio.com/videos/embed/{{ .Get 1 }}?title=0&warningTitle=0&peertubeLink=0" title="Peertube Video" allowfullscreen>
|
||||
</iframe>
|
||||
</div>
|
||||
{{- end }}
|
||||
|
Loading…
Add table
Add a link
Reference in a new issue