diff --git a/content/linuxday/2015/devops-e-ansible-nuovi-modi-per-gestire-i-server/index.it.md b/content/linuxday/2015/devops-e-ansible-nuovi-modi-per-gestire-i-server/index.it.md index 01bf75e..00235c4 100644 --- a/content/linuxday/2015/devops-e-ansible-nuovi-modi-per-gestire-i-server/index.it.md +++ b/content/linuxday/2015/devops-e-ansible-nuovi-modi-per-gestire-i-server/index.it.md @@ -18,8 +18,7 @@ image_alt: Logo Ansible **Francesco Vigotti**, creatore e gestore di [histats.com](https://www.histats.com) e ...uno che la sa lunga 😉, ci parla delle più recenti tecnologie **opensource** per gestire server: DevOps e Ansible. - PS: -[Guarda le slide dell'intervento](Ansible-talk-linuxday.pdf) +[Guarda le slide dell'intervento](Ansible-talk-linuxday.pdf) o il video su [Peertube](https://video.linux.it/my-library/video-playlists/3SUuYCXJqC2M7V35fu7ifX) -{{< peertube video.linux.it 3SUuYCXJqC2M7V35fu7ifX >}} \ No newline at end of file +{{< peertube host="video.linux.it" id="dgpsKn9vD98NnxNNWGXFzs" title="1" >}} \ No newline at end of file diff --git a/content/linuxday/2015/devops-e-ansible-nuovi-modi-per-gestire-i-server/logo-ansible.png b/content/linuxday/2015/devops-e-ansible-nuovi-modi-per-gestire-i-server/logo-ansible.png index 97f77c3..08ab6cd 100644 Binary files a/content/linuxday/2015/devops-e-ansible-nuovi-modi-per-gestire-i-server/logo-ansible.png and b/content/linuxday/2015/devops-e-ansible-nuovi-modi-per-gestire-i-server/logo-ansible.png differ diff --git a/layouts/shortcodes/peertube.html b/layouts/shortcodes/peertube.html index cedd3b4..0607a24 100644 --- a/layouts/shortcodes/peertube.html +++ b/layouts/shortcodes/peertube.html @@ -1,92 +1,15 @@ -{{/* Get parameters from shortcode call. */}} -{{ $host := "" }} -{{ $id := "" }} - {{ if .IsNamedParams -}} - {{ $host = (.Get "host") }} - {{ $id = (.Get "id") }} +
{{- else -}} - {{ $host = (.Get 0) }} - {{ $id = (.Get 1) }} + {{- end }} -{{/* Fetch a local copy of the videos preview image. */}} -{{ $path := path.Join $host "lazy-static" "previews" $id }} -{{ $url := print "https://" $path ".jpg" }} -{{ $destination := path.Join (.Page.RelPermalink) (print $id ".jpg") }} -{{ $img := resources.GetRemote $url }} -{{ $img := $img.Content | resources.FromString $destination }} -{{ $img := $img.RelPermalink }} - -{{/* Generate the videos embed url. */}} -{{ $path := path.Join $host "videos" "embed" $id }} -{{ $url := print "https://" $path }} - -{{/* Fetch the videos title via the peertube api. */}} -{{ $path := path.Join $host "api" "v1" "videos" $id }} -{{ $endpoint := print "https://" $path }} -{{ $result := getJSON $endpoint }} -{{ $title := $result.name }} - - - -