diff options
author | EuAndreh <eu@euandre.org> | 2020-12-24 10:55:38 -0300 |
---|---|---|
committer | EuAndreh <eu@euandre.org> | 2020-12-24 13:07:16 -0300 |
commit | 7be007ffb34d4f1be727c9d91570f32b47203117 (patch) | |
tree | 074c665a4c9a3fc51ddca41282d84783bbc432bf /_layouts/default.html | |
parent | TODOs.org (diff) | |
download | euandre.org-7be007ffb34d4f1be727c9d91570f32b47203117.tar.gz euandre.org-7be007ffb34d4f1be727c9d91570f32b47203117.tar.xz |
Add support for screencasts, behind a feature flag
Diffstat (limited to '_layouts/default.html')
-rw-r--r-- | _layouts/default.html | 13 |
1 files changed, 13 insertions, 0 deletions
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 %} <link rel="alternate" type="application/atom+xml" href="{{ site.t.podcasts.feed.url[page.lang] }}" hreflang="{{ page.lang }}" title="{{ site.t.podcasts.feed.title[page.lang] }}" /> {% endif %} + {% if site.screencast %} + <link rel="alternate" type="application/atom+xml" href="{{ site.t.screencasts.feed.url[page.lang] }}" hreflang="{{ page.lang }}" title="{{ site.t.screencasts.feed.title[page.lang] }}" /> + {% endif %} <title>{{ page.title }} - EuAndreh</title> <meta property="og:site_name" content="{{ site.title }}" /> @@ -47,6 +50,9 @@ {% if site.podcast %} <a href="{% link {{ site.t.podcasts.url[page.lang] }} %}">{{ site.t.podcasts.name[page.lang] }}</a> {% endif %} + {% if site.screencast %} + <a href="{% link {{ site.t.screencasts.url[page.lang] }} %}">{{ site.t.screencasts.name[page.lang] }}</a> + {% endif %} <a href="{% link {{ site.t.about.url[page.lang] }} %}">{{ site.t.about.name[page.lang] }}</a> </div> {% if page.ref != nil %} @@ -89,6 +95,13 @@ <a href="{{ lpodcast.url }}" class="{{ lpodcast.lang }}">{{ lpodcast.lang }}</a> </li> {% endfor %} + + {% assign lscreencasts=site.screencasts | where:"ref", page.ref | sort: 'lang' %} + {% for lscreencast in lscreencasts %} + <li> + <a href="{{ lscreencast.url }}" class="{{ lscreencast.lang }}">{{ lscreencast.lang }}</a> + </li> + {% endfor %} </ul> {% else %} {% link break-build-if-any-page-has-a-missing-ref %} |