From 191728a2cac217e96a7f1e4e9a4710606f6ad920 Mon Sep 17 00:00:00 2001 From: EuAndreh Date: Wed, 12 Aug 2020 06:34:38 -0300 Subject: Add TILs section, with Atom support and i18n - add i18n logic to support translated TIL entries and listing; - make the website title less tied to a blog: "EuAndreh::blog" -> EuAndreh; - remove old Atom feed link aliases; - remove feed.all.atom and it's link in the about page; - create Atom feed for TIL entries; - show blog and TIL Atom feed on their listing pages (index and tils-listing); - add root alias: / -> /en/ - remove explicit list of feeds from $IGNORED_PAGES and use a '*.atom' glob instead; - also lint, assert-content and assert-unique-ref of TILs; - fix wrong "post.date" in pastebin entry in site.json; --- _includes/feed.atom | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) (limited to '_includes') diff --git a/_includes/feed.atom b/_includes/feed.atom index bf0f4d4..5451702 100644 --- a/_includes/feed.atom +++ b/_includes/feed.atom @@ -6,29 +6,29 @@ {{ page.url | absolute_url | xml_escape }} {{ site.title | smartify | xml_escape }} - {{ site.t.feed_title[include.lang] | smartify | xml_escape }} + {{ site.t.feed.title[include.kind][include.lang] | smartify | xml_escape }} {{ site.author.name | xml_escape }} {{ site.author.email | xml_escape }} - {% for post in include.posts %} - - {{ post.title | smartify | strip_html | normalize_whitespace | xml_escape }} - - {{ post.date | date_to_xmlschema }} - {{ post.updated_at | default: post.date | date_to_xmlschema }} - {{ post.url | absolute_url | xml_escape }} + {% for entry in include.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 }} - {{ post.content | strip | xml_escape }} + {{ entry.content | strip | xml_escape }} {{ site.author.name | xml_escape }} {{ site.author.email | xml_escape }} - {{ post.excerpt | strip_html | normalize_whitespace | xml_escape }} + {{ entry.excerpt | strip_html | normalize_whitespace | xml_escape }} {% endfor %} -- cgit v1.2.3