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/default.html | 13 +++++++++++++ 1 file changed, 13 insertions(+) (limited to '_layouts/default.html') 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 %} -- cgit v1.2.3