From 0e95ca39546707f7e3bb3df25df2a5096a15f4c8 Mon Sep 17 00:00:00 2001 From: EuAndreh Date: Thu, 6 Feb 2020 02:44:04 -0300 Subject: Add Atom feed with all languages --- TODOs.org | 5 +++++ _includes/feed.atom | 3 +-- about.md | 2 ++ feed.all.atom | 4 ++++ feed.en.atom | 3 ++- feed.pt.atom | 1 + sobre.md | 2 ++ 7 files changed, 17 insertions(+), 3 deletions(-) create mode 100644 feed.all.atom diff --git a/TODOs.org b/TODOs.org index 2d5ac7c..9fede74 100644 --- a/TODOs.org +++ b/TODOs.org @@ -2,3 +2,8 @@ ** Spelling ** Assert line length ** Line number +** Feed symlinks +rss.xml -> feed.en.atom +feed.xml -> feed.en.atom +atom.xml -> feed.en.atom +feed.atom -> feed.en.atom diff --git a/_includes/feed.atom b/_includes/feed.atom index f4243ea..bf0f4d4 100644 --- a/_includes/feed.atom +++ b/_includes/feed.atom @@ -13,8 +13,7 @@ {{ site.author.email | xml_escape }} - {% assign posts = site.posts | where:"lang", include.lang | sort: "date" | reverse %} - {% for post in posts %} + {% for post in include.posts %} {{ post.title | smartify | strip_html | normalize_whitespace | xml_escape }} diff --git a/about.md b/about.md index 7fe410d..452c1c7 100644 --- a/about.md +++ b/about.md @@ -25,3 +25,5 @@ Below you can find some interesting projects of mine. ## Other things [Pastebin listing](./pastebins.html). + +[Atom feed with all languages](./feed.all.atom). diff --git a/feed.all.atom b/feed.all.atom new file mode 100644 index 0000000..381dd63 --- /dev/null +++ b/feed.all.atom @@ -0,0 +1,4 @@ +--- +--- +{% assign lposts = site.posts | sort: "date" | reverse %} +{% include feed.atom posts=lposts lang="en" %} \ No newline at end of file diff --git a/feed.en.atom b/feed.en.atom index 643f557..a048a54 100644 --- a/feed.en.atom +++ b/feed.en.atom @@ -1,3 +1,4 @@ --- --- -{% include feed.atom lang="en" %} \ No newline at end of file +{% assign lposts = site.posts | where:"lang", "en" | sort: "date" | reverse %} +{% include feed.atom posts=lposts lang="en" %} \ No newline at end of file diff --git a/feed.pt.atom b/feed.pt.atom index 39a9248..9862e38 100644 --- a/feed.pt.atom +++ b/feed.pt.atom @@ -1,3 +1,4 @@ --- --- +{% assign lposts = site.posts | where:"lang", "pt" | sort: "date" | reverse %} {% include feed.atom lang="pt" %} diff --git a/sobre.md b/sobre.md index 329e133..fa2809b 100644 --- a/sobre.md +++ b/sobre.md @@ -26,3 +26,5 @@ Abaixo vocĂȘ encontra alguns projetos interessantes meus. ## Outros [Lista de pastebins](./pastebins.html). + +[Feed Atom com todos os idiomas](./feed.all.atom). -- cgit v1.2.3