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 --- _includes/feed.atom | 22 +++++++++++++++------- 1 file changed, 15 insertions(+), 7 deletions(-) (limited to '_includes/feed.atom') diff --git a/_includes/feed.atom b/_includes/feed.atom index b7a97ca..9297201 100644 --- a/_includes/feed.atom +++ b/_includes/feed.atom @@ -1,10 +1,14 @@ -{% assign is_audio=site.atom[include.kind].audio %} - {% if is_audio %} +{% assign + is_audio=site.atom[include.kind].audio +%}{% assign + is_video=site.atom[include.kind].video +%} + {% if is_audio or is_video %} {{ site.title | smartify | xml_escape }} - {{ site.t.podcasts.feed.title[include.lang] | smartify | xml_escape }} + {{ site.t[include.kind].feed.title[include.lang] | smartify | xml_escape }} {{ page.url | absolute_url | xml_escape }} {{ include.lang }} @@ -18,7 +22,7 @@ {{ '/' | absolute_url | xml_escape }}static/favicon.png {{ page.url | absolute_url | xml_escape }} - {{ site.t.podcasts.feed.title }} + {{ site.t[include.kind].feed.title }} {% else %} {{ entry.title | smartify | strip_html | normalize_whitespace | xml_escape }} {{ entry.url | absolute_url | xml_escape }} @@ -48,7 +52,11 @@ {{ entry.content | strip | xml_escape }} - + {% if is_audio %} + + {% elsif is_video %} + + {% endif %} EuAndreh {{ entry.date | date_to_xmlschema }} @@ -74,7 +82,7 @@ {% endif %} {% endfor %} -{% if is_audio %} +{% if is_audio or is_video %} {% else %} -- cgit v1.2.3