New version 0.2
Add coding information in all py files Add dyn:post_url and dyn:post_full_url for replace directive (doesn't prepend http://) Escape double quotes in metas tag Add HTML5 markup for blog.soutade.fr Add ChangeLog
This commit is contained in:
parent
1837bb127c
commit
e795fa1af6
13
ChangeLog
Normal file
13
ChangeLog
Normal file
|
@ -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
|
||||
|
|
@ -1,3 +1,4 @@
|
|||
# -*- coding: utf-8 -*-
|
||||
"""
|
||||
Copyright 2012-2013 Grégory Soutadé
|
||||
|
||||
|
|
|
@ -1,3 +1,4 @@
|
|||
# -*- coding: utf-8 -*-
|
||||
"""
|
||||
Copyright 2012-2013 Grégory Soutadé
|
||||
|
||||
|
|
|
@ -1,3 +1,4 @@
|
|||
# -*- coding: utf-8 -*-
|
||||
"""
|
||||
Copyright 2012-2013 Grégory Soutadé
|
||||
|
||||
|
|
|
@ -1,3 +1,4 @@
|
|||
# -*- coding: utf-8 -*-
|
||||
"""
|
||||
Copyright 2012-2013 Grégory Soutadé
|
||||
|
||||
|
|
|
@ -1,3 +1,4 @@
|
|||
# -*- coding: utf-8 -*-
|
||||
"""
|
||||
Copyright 2012-2013 Grégory Soutadé
|
||||
|
||||
|
|
|
@ -1,3 +1,4 @@
|
|||
# -*- coding: utf-8 -*-
|
||||
"""
|
||||
Copyright 2012-2013 Grégory Soutadé
|
||||
|
||||
|
|
|
@ -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)
|
||||
|
|
|
@ -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)
|
||||
|
|
|
@ -1,3 +1,4 @@
|
|||
# -*- coding: utf-8 -*-
|
||||
"""
|
||||
Copyright 2012-2013 Grégory Soutadé
|
||||
|
||||
|
|
|
@ -1,3 +1,4 @@
|
|||
# -*- coding: utf-8 -*-
|
||||
"""
|
||||
Copyright 2012-2013 Grégory Soutadé
|
||||
|
||||
|
|
|
@ -1,3 +1,4 @@
|
|||
# -*- coding: utf-8 -*-
|
||||
"""
|
||||
Copyright 2012-2013 Grégory Soutadé
|
||||
|
||||
|
|
|
@ -1,3 +1,4 @@
|
|||
# -*- coding: utf-8 -*-
|
||||
"""
|
||||
Copyright 2012-2013 Grégory Soutadé
|
||||
|
||||
|
|
|
@ -1,3 +1,4 @@
|
|||
# -*- coding: utf-8 -*-
|
||||
"""
|
||||
Copyright 2012-2013 Grégory Soutadé
|
||||
|
||||
|
|
|
@ -1,6 +1,8 @@
|
|||
<dyn:base file="_base.html" block="content" xmlns:dyn="http://indefero.soutade.fr/p/dynastie">
|
||||
<div id="archive_year">Archives <dyn:archive year="1"/></div>
|
||||
<dyn:posts limit="5">
|
||||
<article>
|
||||
<header>
|
||||
<div class="post_header">
|
||||
<dyn:title link="1"/>
|
||||
<div class="post_sub_header">
|
||||
|
@ -8,7 +10,12 @@
|
|||
</div>
|
||||
<dyn:tags link="1"/>
|
||||
</div>
|
||||
</header>
|
||||
<dyn:post_content/>
|
||||
<footer class="post_footer">
|
||||
<dyn:replace div_name="a" href="http://dyn:post_full_url">permalink</dyn:replace> <dyn:replace div_name="a" href="dyn:post_url#comments">commentaire(s)</dyn:replace>
|
||||
</footer>
|
||||
</article>
|
||||
</dyn:posts>
|
||||
<dyn:navigation/>
|
||||
</dyn:base>
|
||||
|
|
|
@ -15,9 +15,11 @@
|
|||
<img id="logo" src="/images/tux_final.png"/>
|
||||
<div class="body">
|
||||
<div class="table-row">
|
||||
<header>
|
||||
<div class="table-cell" id="header">
|
||||
<h2 id="title"><a href="/">Blog de Grégory Soutadé</a></h2>
|
||||
</div>
|
||||
</header>
|
||||
</div>
|
||||
<div class="table-row">
|
||||
<div class="content">
|
||||
|
@ -32,6 +34,7 @@
|
|||
</dyn:replace>
|
||||
</div>
|
||||
</div>
|
||||
<nav>
|
||||
<div class="menu_content">
|
||||
<div class="menu_content_header">Menu principal</div>
|
||||
<div id="menu_main">
|
||||
|
@ -73,13 +76,16 @@
|
|||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
</nav>
|
||||
<p style="text-align:center">Généré avec <a href="http://indefero.soutade.fr/p/dynastie">Dynastie</a></p>
|
||||
</div>
|
||||
</div>
|
||||
<footer>
|
||||
<div class="footer">
|
||||
Copyright © 2010-2013 Grégory Soutadé.<br/>
|
||||
All Rights Reserved.
|
||||
</div>
|
||||
</footer>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
||||
|
|
|
@ -17,9 +17,11 @@
|
|||
<img id="logo" src="/images/tux_final.png"/>
|
||||
<div class="body">
|
||||
<div class="table-row">
|
||||
<header>
|
||||
<div class="table-cell" id="header">
|
||||
<h2 id="title"><a href="/">Blog de Grégory Soutadé</a></h2>
|
||||
</div>
|
||||
</header>
|
||||
</div>
|
||||
<div class="table-row">
|
||||
<div class="content">
|
||||
|
@ -34,6 +36,7 @@
|
|||
</dyn:replace>
|
||||
</div>
|
||||
</div>
|
||||
<nav>
|
||||
<div class="menu_content">
|
||||
<div class="menu_content_header">Menu principal</div>
|
||||
<div id="menu_main">
|
||||
|
@ -75,13 +78,16 @@
|
|||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
</nav>
|
||||
<p style="text-align:center">Généré avec <a href="http://indefero.soutade.fr/p/dynastie">Dynastie</a></p>
|
||||
</div>
|
||||
</div>
|
||||
<footer>
|
||||
<div class="footer">
|
||||
Copyright © 2010-2013 Grégory Soutadé.<br/>
|
||||
All Rights Reserved.
|
||||
</div>
|
||||
</footer>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
||||
|
|
|
@ -1,6 +1,8 @@
|
|||
<dyn:base file="_base.html" block="content" xmlns:dyn="http://indefero.soutade.fr/p/dynastie">
|
||||
<div id="category_name"><dyn:category name="1"/></div>
|
||||
<dyn:posts limit="5">
|
||||
<article>
|
||||
<header>
|
||||
<div class="post_header">
|
||||
<dyn:title link="1"/>
|
||||
<div class="post_sub_header">
|
||||
|
@ -8,7 +10,12 @@
|
|||
</div>
|
||||
<dyn:tags link="1"/>
|
||||
</div>
|
||||
</header>
|
||||
<dyn:post_content/>
|
||||
<footer class="post_footer">
|
||||
<dyn:replace div_name="a" href="http://dyn:post_full_url">permalink</dyn:replace> <dyn:replace div_name="a" href="dyn:post_url#comments">commentaire(s)</dyn:replace>
|
||||
</footer>
|
||||
</article>
|
||||
</dyn:posts>
|
||||
<dyn:navigation/>
|
||||
</dyn:base>
|
||||
|
|
|
@ -1,5 +1,7 @@
|
|||
<dyn:base file="_base.html" block="content" xmlns:dyn="http://indefero.soutade.fr/p/dynastie">
|
||||
<dyn:posts limit="5">
|
||||
<article>
|
||||
<header>
|
||||
<div class="post_header">
|
||||
<dyn:title link="1"/>
|
||||
<div class="post_sub_header">
|
||||
|
@ -7,10 +9,17 @@
|
|||
</div>
|
||||
<dyn:tags link="1"/>
|
||||
</div>
|
||||
</header>
|
||||
<dyn:post_content/>
|
||||
<footer class="post_footer">
|
||||
<dyn:replace div_name="a" href="http://dyn:post_full_url">permalink</dyn:replace> <dyn:replace div_name="a" href="dyn:post_url#comments">commentaire(s)</dyn:replace>
|
||||
</footer>
|
||||
</article>
|
||||
</dyn:posts>
|
||||
<nav>
|
||||
<dyn:recents>
|
||||
<span id="recents_title">More posts...</span>
|
||||
</dyn:recents>
|
||||
<dyn:navigation/>
|
||||
</nav>
|
||||
</dyn:base>
|
||||
|
|
|
@ -1,6 +1,8 @@
|
|||
<dyn:base file="_base_post.html" block="content" xmlns:dyn="http://indefero.soutade.fr/p/dynastie">
|
||||
<dyn:post>
|
||||
<article>
|
||||
<div class="post">
|
||||
<header>
|
||||
<div class="post_header">
|
||||
<dyn:title link="0"/>
|
||||
<div class="post_sub_header">
|
||||
|
@ -8,26 +10,33 @@
|
|||
</div>
|
||||
<dyn:tags link="1"/>
|
||||
</div>
|
||||
</header>
|
||||
<dyn:post_content> </dyn:post_content>
|
||||
<footer class="post_footer">
|
||||
<dyn:replace div_name="a" href="http://dyn:post_full_url">permalink</dyn:replace>
|
||||
</footer>
|
||||
<footer id="comments">
|
||||
<dyn:comments>
|
||||
<dyn:replace div_name="div" id="comment_dyn:comment_index"> </dyn:replace>
|
||||
<div class="comment_header">#<dyn:comment_index/> De<dyn:comment_author/>, le<dyn:comment_date/></div>
|
||||
<dyn:comment_content/>
|
||||
<dyn:replace div_name="a" href="javascript:void(0);" onClick="javascript:display('response_dyn:comment_index');">Répondre</dyn:replace><br/>
|
||||
<dyn:replace div_name="form" id="response_dyn:comment_index" class="response" method="POST" action="/comment/add/dyn:post_id/dyn:comment_id" onsubmit="return validateComment('response_dyn:comment_index');">
|
||||
Auteur :<br/><input type="text" name="author"/><br/><br/>
|
||||
e-mail* :<br/><input id="email" type="text" name="email"/><input type="text" name="mel"/><br/><br/>
|
||||
Le commentaire :<br/><textarea name="the_comment" cols="80" rows="10"> </textarea><br/><br/>
|
||||
Auteur :<br/><input type="required" name="author"/><br/><br/>
|
||||
e-mail* :<br/><input id="email" type="email" name="email"/><input type="email" name="mel"/><br/><br/>
|
||||
Le commentaire :<br/><textarea type="required" name="the_comment" cols="80" rows="10"> </textarea><br/><br/>
|
||||
<input type="submit" value="Commenter"/>
|
||||
</dyn:replace>
|
||||
</dyn:comments>
|
||||
<dyn:replace div_name="form" id="response_0" method="POST" action="/comment/add/dyn:post_id/0" onsubmit="return validateComment('response_0');">
|
||||
Auteur :<br/><input type="text" name="author"/><br/><br/>
|
||||
e-mail* :<br/><input id="email" type="text" name="email"/><input type="text" name="mel"/><br/><br/>
|
||||
Le commentaire :<br/><textarea name="the_comment" cols="80" rows="10"> </textarea><br/><br/>
|
||||
Auteur :<br/><input type="required" name="author"/><br/><br/>
|
||||
e-mail* :<br/><input id="email" type="email" name="email"/><input type="email" name="mel"/><br/><br/>
|
||||
Le commentaire :<br/><textarea type="required" name="the_comment" cols="80" rows="10"> </textarea><br/><br/>
|
||||
<input type="submit" value="Commenter"/><br/><br/>
|
||||
* Seulement pour être notifié d'une réponse à cet article
|
||||
</dyn:replace>
|
||||
</footer>
|
||||
</div>
|
||||
</article>
|
||||
</dyn:post>
|
||||
</dyn:base>
|
||||
|
|
|
@ -1,5 +1,7 @@
|
|||
<dyn:base file="_base.html" block="content" xmlns:dyn="http://indefero.soutade.fr/p/dynastie">
|
||||
<dyn:posts limit="25">
|
||||
<article>
|
||||
<header>
|
||||
<div class="post_header">
|
||||
<dyn:title/>
|
||||
<div class="post_sub_header">
|
||||
|
@ -7,6 +9,11 @@
|
|||
</div>
|
||||
<dyn:tags link="1"/>
|
||||
</div>
|
||||
</header>
|
||||
<dyn:post_content/>
|
||||
<footer class="post_footer">
|
||||
<dyn:replace div_name="a" href="http://dyn:post_full_url">permalink</dyn:replace> <dyn:replace div_name="a" href="dyn:post_url#comments">commentaire(s)</dyn:replace>
|
||||
</footer>
|
||||
</article>
|
||||
</dyn:posts>
|
||||
</dyn:base>
|
||||
|
|
|
@ -1,6 +1,8 @@
|
|||
<dyn:base file="_base.html" block="content" xmlns:dyn="http://indefero.soutade.fr/p/dynastie">
|
||||
<div id="tag_name"><dyn:tag name="1"/></div>
|
||||
<dyn:posts limit="5">
|
||||
<article>
|
||||
<header>
|
||||
<div class="post_header">
|
||||
<dyn:title link="1"/>
|
||||
<div class="post_sub_header">
|
||||
|
@ -8,7 +10,12 @@
|
|||
</div>
|
||||
<dyn:tags link="1"/>
|
||||
</div>
|
||||
</header>
|
||||
<dyn:post_content/>
|
||||
<footer class="post_footer">
|
||||
<dyn:replace div_name="a" href="http://dyn:post_full_url">permalink</dyn:replace> <dyn:replace div_name="a" href="dyn:post_url#comments">commentaire(s)</dyn:replace>
|
||||
</footer>
|
||||
</article>
|
||||
</dyn:posts>
|
||||
<dyn:navigation/>
|
||||
</dyn:base>
|
||||
|
|
|
@ -83,7 +83,7 @@ div.menu
|
|||
padding:10px;
|
||||
}
|
||||
|
||||
div.menu > div.menu_content
|
||||
div.menu div.menu_content
|
||||
{
|
||||
background-color: #edeee7;
|
||||
border-style : solid ridge ridge solid;
|
||||
|
@ -95,7 +95,7 @@ div.menu > div.menu_content
|
|||
margin :10px;
|
||||
}
|
||||
|
||||
div.menu > div.menu_content > div.menu_content_header
|
||||
div.menu div.menu_content div.menu_content_header
|
||||
{
|
||||
font-family: Tahoma,Arial,Helvetica,Sans-Serif;
|
||||
font-size: 17px;
|
||||
|
@ -106,7 +106,7 @@ div.menu > div.menu_content > div.menu_content_header
|
|||
color: #475028;
|
||||
}
|
||||
|
||||
div.menu > div.menu_content > div.menu_content_content
|
||||
div.menu div.menu_content div.menu_content_content
|
||||
{
|
||||
color: #5e6a34;
|
||||
}
|
||||
|
@ -119,7 +119,7 @@ div.menu_content_content a
|
|||
font-style: normal;
|
||||
}
|
||||
|
||||
div.menu > div.menu_content > div.menu_content_content a:link
|
||||
div.menu div.menu_content div.menu_content_content a:link
|
||||
{
|
||||
font-family: Tahoma,Arial,Helvetica,Sans-Serif;
|
||||
color: #5e6a34;
|
||||
|
@ -127,7 +127,7 @@ div.menu > div.menu_content > div.menu_content_content a:link
|
|||
font-style: normal;
|
||||
}
|
||||
|
||||
div.menu > div.menu_content > div.menu_content_content a:hover
|
||||
div.menu div.menu_content div.menu_content_content a:hover
|
||||
{
|
||||
font-family: Tahoma,Arial,Helvetica,Sans-Serif;
|
||||
color: #5e6a34;
|
||||
|
@ -135,12 +135,12 @@ div.menu > div.menu_content > div.menu_content_content a:hover
|
|||
font-style: normal;
|
||||
}
|
||||
|
||||
div.menu > div.menu_content > div.menu_content_content ul
|
||||
div.menu div.menu_content div.menu_content_content ul
|
||||
{
|
||||
padding-left:20px;
|
||||
}
|
||||
|
||||
div.menu > div.menu_content > div.menu_content_content li
|
||||
div.menu div.menu_content div.menu_content_content li
|
||||
{
|
||||
list-style-image: url("/images/BlockContentBullets.png");
|
||||
}
|
||||
|
@ -159,7 +159,7 @@ div.post
|
|||
margin-bottom:100px;
|
||||
}
|
||||
|
||||
div.post > div.post_header
|
||||
div.post div.post_header
|
||||
{
|
||||
display:block;
|
||||
font-family: Tahoma,Arial,Helvetica,Sans-Serif;
|
||||
|
@ -167,7 +167,7 @@ div.post > div.post_header
|
|||
padding-bottom:5px;
|
||||
}
|
||||
|
||||
div.post > div.post_header > div.title
|
||||
div.post div.post_header div.title
|
||||
{
|
||||
display:block;
|
||||
text-decoration:none;
|
||||
|
@ -189,7 +189,7 @@ div.post > div.post_header > div.title
|
|||
color: #181B0D;
|
||||
}
|
||||
|
||||
div.post > div.post_header > div.title > a
|
||||
div.post_header div.title > a
|
||||
{
|
||||
display:block;
|
||||
text-decoration:none;
|
||||
|
@ -211,7 +211,7 @@ div.post > div.post_header > div.title > a
|
|||
color: #181B0D;
|
||||
}
|
||||
|
||||
div.post > div.post_header > div.title > a:hover
|
||||
div.post_header div.title > a:hover
|
||||
{
|
||||
display:block;
|
||||
text-decoration:none;
|
||||
|
@ -233,7 +233,7 @@ div.post > div.post_header > div.title > a:hover
|
|||
color: #181B0D;
|
||||
}
|
||||
|
||||
div.post > div.post_header > div.post_sub_header
|
||||
div.post_header div.post_sub_header
|
||||
{
|
||||
display:block;
|
||||
background-color: #edeee7;
|
||||
|
@ -241,7 +241,7 @@ div.post > div.post_header > div.post_sub_header
|
|||
padding : 3px;
|
||||
}
|
||||
|
||||
div.post > div.post_header > div.post_sub_header > div.author_icon
|
||||
div.post_header div.post_sub_header > div.author_icon
|
||||
{
|
||||
display:inline;
|
||||
background-image: url('/images/authoricon.png');
|
||||
|
@ -250,12 +250,12 @@ div.post > div.post_header > div.post_sub_header > div.author_icon
|
|||
padding-left: 18px;
|
||||
}
|
||||
|
||||
div.post > div.post_header > div.post_sub_header > div.author_icon > div.author
|
||||
div.post_header div.post_sub_header > div.author_icon div.author
|
||||
{
|
||||
display:inline;
|
||||
}
|
||||
|
||||
div.post > div.post_header > div.post_sub_header > div.date
|
||||
div.post_header div.post_sub_header div.date
|
||||
{
|
||||
display:inline;
|
||||
font-family: Tahoma,Arial,Helvetica,Sans-Serif;
|
||||
|
@ -265,7 +265,7 @@ div.post > div.post_header > div.post_sub_header > div.date
|
|||
padding-left: 18px;
|
||||
}
|
||||
|
||||
div.post > div.post_content
|
||||
div.post div.post_content
|
||||
{
|
||||
display:block;
|
||||
margin-top:1%;
|
||||
|
@ -274,6 +274,30 @@ div.post > div.post_content
|
|||
|
||||
}
|
||||
|
||||
footer.post_footer
|
||||
{
|
||||
text-align:right;
|
||||
}
|
||||
|
||||
footer.post_footer > a, a:link, a:hover
|
||||
{
|
||||
color: blue;
|
||||
text-decoration:none;
|
||||
}
|
||||
|
||||
footer.post_footer > a:hover
|
||||
{
|
||||
color: blue;
|
||||
text-decoration:underline;
|
||||
}
|
||||
|
||||
footer.post_footer > a:visited
|
||||
{
|
||||
color: purple;
|
||||
text-decoration:underline;
|
||||
}
|
||||
|
||||
|
||||
div.recents
|
||||
{
|
||||
margin-left:20px;
|
||||
|
|
|
@ -9,6 +9,6 @@
|
|||
<a href="/user">Users</a> <a href="/blog">Blogs</a> <a href="/disconnect">Disconnect</a><br/><br/>
|
||||
{% block content %} {% endblock %}
|
||||
<br/><br/><br/>
|
||||
<center><a href="http://indefero.soutade.fr/p/dynastie">Dynastie</a> 0.1</center>
|
||||
<center><a href="http://indefero.soutade.fr/p/dynastie">Dynastie</a> 0.2</center>
|
||||
</body>
|
||||
</html>
|
||||
|
|
Loading…
Reference in New Issue
Block a user