diff --git a/ChangeLog b/ChangeLog new file mode 100644 index 0000000..d8b64b6 --- /dev/null +++ b/ChangeLog @@ -0,0 +1,13 @@ +v0.2 (09/02/2013) + +** User ** + Add dyn:post_url and dyn:post_full_url for replace directive (doesn't prepend http://) + +** Dev ** + Add coding information in all py files + Add HTML5 markup for blog.soutade.fr + Add ChangeLog + +** Bugs ** + Escape double quotes in metas tag + diff --git a/UserProfile.py b/UserProfile.py index d86fce8..2d7d7e4 100644 --- a/UserProfile.py +++ b/UserProfile.py @@ -1,3 +1,4 @@ +# -*- coding: utf-8 -*- """ Copyright 2012-2013 Grégory Soutadé diff --git a/forms.py b/forms.py index 3dff03d..5ef8181 100644 --- a/forms.py +++ b/forms.py @@ -1,3 +1,4 @@ +# -*- coding: utf-8 -*- """ Copyright 2012-2013 Grégory Soutadé diff --git a/generators/__init__.py b/generators/__init__.py index 819b061..054cd90 100644 --- a/generators/__init__.py +++ b/generators/__init__.py @@ -1,3 +1,4 @@ +# -*- coding: utf-8 -*- """ Copyright 2012-2013 Grégory Soutadé diff --git a/generators/archive.py b/generators/archive.py index 7c4b2a5..72907ba 100644 --- a/generators/archive.py +++ b/generators/archive.py @@ -1,3 +1,4 @@ +# -*- coding: utf-8 -*- """ Copyright 2012-2013 Grégory Soutadé diff --git a/generators/atom.py b/generators/atom.py index 09a0412..b223fa5 100644 --- a/generators/atom.py +++ b/generators/atom.py @@ -1,3 +1,4 @@ +# -*- coding: utf-8 -*- """ Copyright 2012-2013 Grégory Soutadé diff --git a/generators/category.py b/generators/category.py index 6960b4c..c4ae369 100644 --- a/generators/category.py +++ b/generators/category.py @@ -1,3 +1,4 @@ +# -*- coding: utf-8 -*- """ Copyright 2012-2013 Grégory Soutadé diff --git a/generators/generator.py b/generators/generator.py index 801a7fd..83c7745 100644 --- a/generators/generator.py +++ b/generators/generator.py @@ -1,3 +1,4 @@ +# -*- coding: utf-8 -*- """ Copyright 2012-2013 Grégory Soutadé diff --git a/generators/index.py b/generators/index.py index 9803adc..7a82610 100644 --- a/generators/index.py +++ b/generators/index.py @@ -1,3 +1,4 @@ +# -*- coding: utf-8 -*- """ Copyright 2012-2013 Grégory Soutadé @@ -61,6 +62,12 @@ class Index(DynastieGenerator): value = value.replace('dyn:blog_id', str(self.blog.id)) + if not self.cur_post_obj is None: + url = self.cur_post_obj.getPath() + full_url = self.cur_post_obj.blog.name + url + value = value.replace('dyn:post_url', url) + value = value.replace('dyn:post_full_url', full_url) + div_element.setAttribute(key, value) root.replaceChild(div_element, replace_elem) diff --git a/generators/post.py b/generators/post.py index 03c87ac..4b15893 100644 --- a/generators/post.py +++ b/generators/post.py @@ -1,3 +1,4 @@ +# -*- coding: utf-8 -*- """ Copyright 2012-2013 Grégory Soutadé @@ -50,6 +51,10 @@ class Post(Index): value = value.replace('dyn:comment_id', str(self.cur_comment.id)) value = value.replace('dyn:blog_id', str(self.blog.id)) + url = post.getPath() + full_url = post.blog.name + url + value = value.replace('dyn:post_url', url) + value = value.replace('dyn:post_full_url', full_url) div_element.setAttribute(key, value) @@ -120,11 +125,14 @@ class Post(Index): new_elem = None if name == 'keywords': - new_elem = self.createMeta(dom, name, post.keywords) + value = post.keywords.replace('"', '“') + new_elem = self.createMeta(dom, name, value) elif name == 'title': - new_elem = self.createMeta(dom, name, post.title) + value = post.title.replace('"', '“') + new_elem = self.createMeta(dom, name, value) elif name == 'description': - new_elem = self.createMeta(dom, name, post.description) + value = post.description.replace('"', '“') + new_elem = self.createMeta(dom, name, value) elif name == 'author': try: new_elem = self.createMeta(dom, name, post.author.first_name + ' ' + post.author.last_name) diff --git a/generators/rss.py b/generators/rss.py index bd73945..8d0596c 100644 --- a/generators/rss.py +++ b/generators/rss.py @@ -1,3 +1,4 @@ +# -*- coding: utf-8 -*- """ Copyright 2012-2013 Grégory Soutadé diff --git a/generators/search.py b/generators/search.py index 38fedf9..85f2354 100644 --- a/generators/search.py +++ b/generators/search.py @@ -1,3 +1,4 @@ +# -*- coding: utf-8 -*- """ Copyright 2012-2013 Grégory Soutadé diff --git a/generators/tag.py b/generators/tag.py index a3a99d3..e4666fe 100644 --- a/generators/tag.py +++ b/generators/tag.py @@ -1,3 +1,4 @@ +# -*- coding: utf-8 -*- """ Copyright 2012-2013 Grégory Soutadé diff --git a/models.py b/models.py index 60897a7..3cb6e1d 100644 --- a/models.py +++ b/models.py @@ -1,3 +1,4 @@ +# -*- coding: utf-8 -*- """ Copyright 2012-2013 Grégory Soutadé diff --git a/settings.py b/settings.py index 8ae24cc..351f708 100644 --- a/settings.py +++ b/settings.py @@ -1,3 +1,4 @@ +# -*- coding: utf-8 -*- """ Copyright 2012-2013 Grégory Soutadé diff --git a/sites/blog.soutade.fr/_archive.html b/sites/blog.soutade.fr/_archive.html index e266ae8..4d9b575 100755 --- a/sites/blog.soutade.fr/_archive.html +++ b/sites/blog.soutade.fr/_archive.html @@ -1,14 +1,21 @@
Archives
-
- -
- |
Écrit par
-
- -
- +
+
+
+ +
+ |
Écrit par
+
+ +
+
+ +
+ permalink commentaire(s) +
+
diff --git a/sites/blog.soutade.fr/_base.html b/sites/blog.soutade.fr/_base.html index 6ae8cf3..fe978b5 100755 --- a/sites/blog.soutade.fr/_base.html +++ b/sites/blog.soutade.fr/_base.html @@ -15,9 +15,11 @@
- +
+ +
@@ -32,54 +34,58 @@
-