-
+ {% include 'article_infos.html' %}
{{ article.summary }}
read more
{% include 'comments.html' %}
diff --git a/pelican/themes/notmyidea/templates/translations.html b/pelican/themes/notmyidea/templates/translations.html
new file mode 100644
index 00000000..0079883e
--- /dev/null
+++ b/pelican/themes/notmyidea/templates/translations.html
@@ -0,0 +1,6 @@
+{% if article.translations %}
+Translations:
+ {% for translation in article.translations %}
+
{{ translation.lang }}
+ {% endfor %}
+{% endif %}
diff --git a/pelican/utils.py b/pelican/utils.py
index fe7ab009..b15d8642 100644
--- a/pelican/utils.py
+++ b/pelican/utils.py
@@ -159,6 +159,7 @@ def process_translations(content_list):
Also, for each content_list item, it
sets attribute 'translations'
"""
+ content_list.sort(key=attrgetter('slug'))
grouped_by_slugs = groupby(content_list, attrgetter('slug'))
index = []
translations = []
diff --git a/samples/content/another_super_article-fr.rst b/samples/content/another_super_article-fr.rst
new file mode 100644
index 00000000..f0e63196
--- /dev/null
+++ b/samples/content/another_super_article-fr.rst
@@ -0,0 +1,6 @@
+Oh yeah !
+#########
+
+:lang: fr
+
+Et voila du contenu en français
diff --git a/samples/content/another_super_article.rst b/samples/content/another_super_article.rst
index 1c1c6d9c..84cdc401 100644
--- a/samples/content/another_super_article.rst
+++ b/samples/content/another_super_article.rst
@@ -1,5 +1,5 @@
Oh yeah !
-#########################
+#########
:tags: oh, bar, yeah
:date: 2010-10-20 10:14
diff --git a/samples/content/super_article.rst b/samples/content/super_article.rst
index 8096de95..3b9f9adc 100644
--- a/samples/content/super_article.rst
+++ b/samples/content/super_article.rst
@@ -25,7 +25,7 @@ And here comes the cool stuff_.
.. code-block:: python
- >>> from ipdb import set trace
+ >>> from ipdb import set_trace
>>> set_trace()
→ And now try with some utf8 hell: ééé