From 7be007ffb34d4f1be727c9d91570f32b47203117 Mon Sep 17 00:00:00 2001 From: EuAndreh Date: Thu, 24 Dec 2020 10:55:38 -0300 Subject: Add support for screencasts, behind a feature flag --- _layouts/cast.html | 28 ++++++++++++++++++++++++++++ _layouts/default.html | 13 +++++++++++++ _layouts/podcast.html | 19 ------------------- 3 files changed, 41 insertions(+), 19 deletions(-) create mode 100644 _layouts/cast.html delete mode 100644 _layouts/podcast.html (limited to '_layouts') diff --git a/_layouts/cast.html b/_layouts/cast.html new file mode 100644 index 0000000..330aed7 --- /dev/null +++ b/_layouts/cast.html @@ -0,0 +1,28 @@ +--- +layout: post +--- + +{% if page.audio %} + + + +{% endif %} + +{% if page.video %} + +{% endif %} + +{{ content }} diff --git a/_layouts/default.html b/_layouts/default.html index 8ab772e..441af23 100644 --- a/_layouts/default.html +++ b/_layouts/default.html @@ -11,6 +11,9 @@ {% if site.podcast %} {% endif %} + {% if site.screencast %} + + {% endif %} {{ page.title }} - EuAndreh @@ -47,6 +50,9 @@ {% if site.podcast %} {{ site.t.podcasts.name[page.lang] }} {% endif %} + {% if site.screencast %} + {{ site.t.screencasts.name[page.lang] }} + {% endif %} {{ site.t.about.name[page.lang] }} {% if page.ref != nil %} @@ -89,6 +95,13 @@ {{ lpodcast.lang }} {% endfor %} + + {% assign lscreencasts=site.screencasts | where:"ref", page.ref | sort: 'lang' %} + {% for lscreencast in lscreencasts %} +
  • + {{ lscreencast.lang }} +
  • + {% endfor %} {% else %} {% link break-build-if-any-page-has-a-missing-ref %} diff --git a/_layouts/podcast.html b/_layouts/podcast.html deleted file mode 100644 index 197943f..0000000 --- a/_layouts/podcast.html +++ /dev/null @@ -1,19 +0,0 @@ ---- -layout: post ---- - - - - - -{{ content }} -- cgit v1.2.3