aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--TODOs.org5
-rw-r--r--_includes/feed.atom3
-rw-r--r--about.md2
-rw-r--r--feed.all.atom4
-rw-r--r--feed.en.atom3
-rw-r--r--feed.pt.atom1
-rw-r--r--sobre.md2
7 files changed, 17 insertions, 3 deletions
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 @@
<email>{{ site.author.email | xml_escape }}</email>
</author>
- {% assign posts = site.posts | where:"lang", include.lang | sort: "date" | reverse %}
- {% for post in posts %}
+ {% for post in include.posts %}
<entry xml:lang="{{ post.lang }}">
<title type="html">{{ post.title | smartify | strip_html | normalize_whitespace | xml_escape }}</title>
<link href="{{ post.url | absolute_url }}" rel="alternate" type="text/html" title="{{ post.title | 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).