diff --git a/themes/openpowerfoundation/layouts/shortcodes/pdffile.html b/themes/openpowerfoundation/layouts/shortcodes/pdffile.html new file mode 100644 index 0000000..ec4c813 --- /dev/null +++ b/themes/openpowerfoundation/layouts/shortcodes/pdffile.html @@ -0,0 +1 @@ + diff --git a/themes/openpowerfoundation/layouts/shortcodes/slides.html b/themes/openpowerfoundation/layouts/shortcodes/slides.html new file mode 100644 index 0000000..d6217d4 --- /dev/null +++ b/themes/openpowerfoundation/layouts/shortcodes/slides.html @@ -0,0 +1,25 @@ +{{ $slidesurl := .Get "url" }} +{{ $title := .Get "title" }} + +{{ $slidesprefix := substr $slidesurl 0 5 }} +{{ $slidessuffix := split $slidesurl "." }} +{{ $slidestypesize := int (sub (len $slidessuffix) 1) }} +{{ $slidestype := index $slidessuffix $slidestypesize }} +{{ if eq $slidesprefix "https" }} + {{ $slidesurl = $slidesurl }} +{{ else }} + {{ $slidesurl = printf "%s/%s" "https://assets.gsebelux.eu" $slidesurl }} +{{ end }} + +