talkgroup

Peertube shortcode for Hugo

Tags: #<Tag:0x00007fd928078c68> #<Tag:0x00007fd928078b28>

James created a Hugo shortcode for embedding Peertube videos. Mirrored at mirror/blog.tomasino.org - themes/blank/layouts/shortcodes/peertube.html at master - allthe.codes

    <div style="position: relative; padding-bottom: 56.25%; height: 0; overflow: hidden;">
      <iframe 
         width="560"
         height="315"
         sandbox="allow-same-origin allow-scripts" 
         src="https://{{.Get 0}}/videos/embed/{{.Get 1}}"
         frameborder="0"
         style="position: absolute; top: 0; left: 0; width: 100%; height: 100%; border:0;"
         allowfullscreen>
      </iframe>
    </div>

The shortcode is used to embed the video at Pride and Culture Days.