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 }} - - - -
- -
- - - - -
- {{ if eq .Page.Lang "de" }} - Wenn angeklickt wird dieses Video von {{ $host }} geladen. - {{ else }} - When clicked, this video is loaded from {{ $host }} - {{ end }} -
-
-
-
{{ $title }}
-
- {{ if eq .Page.Lang "de" }} - Beim Ansehen dieses Videos wird möglicherweise Ihre IP-Adresse an Dritte weitergegeben. - {{ else }} - Watching this video may reveal your IP address to others. - {{ end }} -
-
-
-
-
- - - - + \ No newline at end of file diff --git a/layouts/shortcodes/peertube2.html b/layouts/shortcodes/peertube2.html deleted file mode 100644 index d9a6368..0000000 --- a/layouts/shortcodes/peertube2.html +++ /dev/null @@ -1,13 +0,0 @@ -{{ if .IsNamedParams -}} -
- -
-{{- else -}} -
- -
-{{- end }} \ No newline at end of file