From 1a96af1f442ef1c1393fa1ce3a759dc16ce75f23 Mon Sep 17 00:00:00 2001 From: EuAndreh Date: Sat, 19 Dec 2020 02:19:37 -0300 Subject: Add Podcast structure, with public entrypoint commented out --- _includes/feed.atom | 104 +++++++++++++++++++++++++++++++++++++++------------- 1 file changed, 79 insertions(+), 25 deletions(-) (limited to '_includes') diff --git a/_includes/feed.atom b/_includes/feed.atom index e627f9c..9facc5a 100644 --- a/_includes/feed.atom +++ b/_includes/feed.atom @@ -1,34 +1,88 @@ - - - - {{ site.time | date_to_xmlschema }} - {{ page.url | absolute_url | xml_escape }} +{% assign is_audio=site.atom[include.kind].audio %} + {% if is_audio %} + + + {{ site.t.podcasts.feed.title }} + {{ site.t[include.kind].feed.title[include.lang] | smartify | xml_escape }} + {{ page.url | absolute_url | xml_escape }} + + {{ include.lang }} + CC BY-SA 4.0 - {{ site.title | xml_escape }} - {{ site.t[include.kind].feed.title[include.lang] | smartify | xml_escape }} + + + + Sat, 25 Mar 2006 11:30:00 -0500 + Sat, 25 Mar 2006 11:30:00 -0500 + http://blogs.law.harvard.edu/tech/rss - - {{ site.author.name | xml_escape }} - {{ site.author.email | xml_escape }} - - - {% assign entries = include.entries | where:"lang", include.lang | has_category:include.categories_filter | sort: "date" | reverse %} - {% for entry in entries %} - - {{ entry.title | smartify | strip_html | normalize_whitespace | xml_escape }} - - {{ entry.date | date_to_xmlschema }} - {{ entry.updated_at | default: entry.date | date_to_xmlschema }} - {{ entry.url | absolute_url | xml_escape }} - - {{ entry.content | strip | xml_escape }} + {{ site.author.email | xml_escape }} ({{ site.author.name | xml_escape }}) + + https://hipsters.tech/wp-content/uploads/2016/07/hipsters-logo.png + {{ page.url | absolute_url | xml_escape }} + {{ site.t.podcasts.feed.title }} + + {% else %} + + + + {{ site.title | xml_escape }} + {{ site.t[include.kind].feed.title[include.lang] | smartify | xml_escape }} + {{ page.url | absolute_url | xml_escape }} + {{ site.time | date_to_xmlschema }} {{ site.author.name | xml_escape }} {{ site.author.email | xml_escape }} + {% endif %} + + {% assign entries = include.entries | where:"lang", include.lang | has_category:include.categories_filter | sort: "date" | reverse %} + {% for entry in entries %} + {% if is_audio %} + + {{ entry.title | smartify | strip_html | normalize_whitespace | xml_escape }} + {{ entry.url | absolute_url | xml_escape }} + {{ entry.url | absolute_url | xml_escape }} + + {{ entry.content | strip | xml_escape }} + + + EuAndreh + Sat, 25 Mar 2006 11:30:00 -0500 + + + + + {% else %} + + {{ entry.title | smartify | strip_html | normalize_whitespace | xml_escape }} + + {{ entry.date | date_to_xmlschema }} + {{ entry.updated_at | default: entry.date | date_to_xmlschema }} + {{ entry.url | absolute_url | xml_escape }} + + + {{ entry.content | strip | xml_escape }} + - {{ entry.excerpt | strip_html | normalize_whitespace | xml_escape }} - + + {{ site.author.name | xml_escape }} + {{ site.author.email | xml_escape }} + + + {{ entry.excerpt | strip_html | normalize_whitespace | xml_escape }} + + {% endif %} {% endfor %} - + +{% if is_audio %} + + +{% else %} + +{% endif %} -- cgit v1.2.3