diff --git a/dynastie/generators/index.py b/dynastie/generators/index.py
index a6cec5c..d53ae92 100755
--- a/dynastie/generators/index.py
+++ b/dynastie/generators/index.py
@@ -49,6 +49,7 @@ class Index(DynastieGenerator):
'replace' : self.createReplace,
'first_page_only' : self.createFirstPageOnly,
'ljdc_last' : self.createLJDCLast,
+ 'comments_count' : self.createCommentsCount,
}
self.first_try = True
@@ -77,6 +78,14 @@ class Index(DynastieGenerator):
root.replaceChild(div_element, replace_elem)
return div_element
+ def createCommentsCount(self, posts, dom, root, node):
+ from dynastie.models import Comment
+ if self.cur_post_obj is None:
+ count = 0
+ else:
+ count = Comment.objects.filter(post=self.cur_post_obj.id).count()
+ self.replaceByText(dom, root, node, str(count))
+
def createNavigation(self, posts, dom, root, node):
if self.nb_pages == 0 or self.nb_pages == 1:
return None
diff --git a/dynastie/sites/blog.soutade.fr/_index.html b/dynastie/sites/blog.soutade.fr/_index.html
index 1d2f4e7..470bc9f 100755
--- a/dynastie/sites/blog.soutade.fr/_index.html
+++ b/dynastie/sites/blog.soutade.fr/_index.html
@@ -13,7 +13,7 @@
diff --git a/dynastie/sites/blog.soutade.fr/_ljdc.xml b/dynastie/sites/blog.soutade.fr/_ljdc.xml
index a09b183..cd4e6af 100644
--- a/dynastie/sites/blog.soutade.fr/_ljdc.xml
+++ b/dynastie/sites/blog.soutade.fr/_ljdc.xml
@@ -1,5 +1,29 @@
+
+ 87886854819
+ http://thecodinglove.com/post/87886854819/when-my-app-comes-back-from-qa-without-any-bugs
+ when my app comes back from QA without any bugs
+
http://i.imgur.com/uk5JoVB.gif
+
+
+ 86408294325
+ http://lesjoiesducode.fr/post/86408294325/quand-on-me-donne-quelque-chose-a-coder-apres-un-mois
+ quand on me donne quelque chose à coder après un mois passé à rédiger des docs
+
http://ljdchost.com/eSi5YaK.gif
+
+
+ 86498759470
+ http://lesjoiesducode.fr/post/86498759470/quand-on-debug-en-mode-ninja-pendant-la-demo
+ quand on debug en mode ninja pendant la démo
+
http://ljdchost.com/ibpfNpQ8sZ4ziO.gif
+
+
+ 86206676795
+ http://lesjoiesducode.fr/post/86206676795/quand-une-mise-en-production-seffectue-sans-souci
+ quand une mise en production s'effectue sans souci
+
http://i.imgur.com/oRTod71.gif
+
87094581962
http://thecodinglove.com/post/87094581962/when-caffeine-is-no-longer-effective
diff --git a/dynastie/sites/blog.soutade.fr/css/blog.css b/dynastie/sites/blog.soutade.fr/css/blog.css
index 536b36a..9a39851 100755
--- a/dynastie/sites/blog.soutade.fr/css/blog.css
+++ b/dynastie/sites/blog.soutade.fr/css/blog.css
@@ -600,4 +600,9 @@ div.all_posts div.post
#last_ljdc
{
padding-bottom:40px;
+}
+
+.comments_link
+{
+ padding-right:20px;
}
\ No newline at end of file