diff --git a/dynastie/generators/index.py b/dynastie/generators/index.py
index d53ae92..d0a10b7 100755
--- a/dynastie/generators/index.py
+++ b/dynastie/generators/index.py
@@ -50,6 +50,7 @@ class Index(DynastieGenerator):
'first_page_only' : self.createFirstPageOnly,
'ljdc_last' : self.createLJDCLast,
'comments_count' : self.createCommentsCount,
+ 'category_name' : self.createCategoryName,
}
self.first_try = True
@@ -85,6 +86,14 @@ class Index(DynastieGenerator):
else:
count = Comment.objects.filter(post=self.cur_post_obj.id).count()
self.replaceByText(dom, root, node, str(count))
+
+ def createCategoryName(self, posts, dom, root, node):
+ from dynastie.models import Category
+ if self.cur_post_obj is None:
+ category = ''
+ else:
+ category = Category.objects.filter(id=self.cur_post_obj.category.id)[0].name
+ self.replaceByText(dom, root, node, category)
def createNavigation(self, posts, dom, root, node):
if self.nb_pages == 0 or self.nb_pages == 1:
diff --git a/dynastie/sites/blog.soutade.fr/_all_posts.html b/dynastie/sites/blog.soutade.fr/_all_posts.html
index 54b2241..bad5a11 100644
--- a/dynastie/sites/blog.soutade.fr/_all_posts.html
+++ b/dynastie/sites/blog.soutade.fr/_all_posts.html
@@ -4,7 +4,7 @@
-
+ []
diff --git a/dynastie/sites/blog.soutade.fr/_ljdc.xml b/dynastie/sites/blog.soutade.fr/_ljdc.xml
index cd4e6af..4e5000e 100644
--- a/dynastie/sites/blog.soutade.fr/_ljdc.xml
+++ b/dynastie/sites/blog.soutade.fr/_ljdc.xml
@@ -1,5 +1,17 @@
+
+ 86876038790
+ http://lesjoiesducode.fr/post/86876038790/quand-je-corrige-sans-probleme-une-serie-de-bugs
+ quand je corrige sans problème une série de bugs mineurs
+ http://ljdchost.com/H3lqXrR.gif
+
+
+ 86598933572
+ http://lesjoiesducode.fr/post/86598933572/vendredi-17h
+ vendredi, 17h
+ http://ljdchost.com/KtEbpO4.gif
+
87886854819
http://thecodinglove.com/post/87886854819/when-my-app-comes-back-from-qa-without-any-bugs
diff --git a/dynastie/sites/blog.soutade.fr/css/blog.css b/dynastie/sites/blog.soutade.fr/css/blog.css
index 9a39851..fdaa766 100755
--- a/dynastie/sites/blog.soutade.fr/css/blog.css
+++ b/dynastie/sites/blog.soutade.fr/css/blog.css
@@ -605,4 +605,9 @@ div.all_posts div.post
.comments_link
{
padding-right:20px;
+}
+
+.year .title
+{
+ display:inline;
}
\ No newline at end of file