Blog section correction RSS
This commit is contained in:
parent
5abbf367ab
commit
a4fe70de60
@ -41,7 +41,7 @@
|
||||
<p class="center"><a href="{{ url_for('loginlogout.lost_password') }}"> Mouarf j'ai perdu mon mot de passe </a> </p>
|
||||
<button class="btn btn-default btn-primary" type="submit"> Login </button>
|
||||
</form>
|
||||
{% if list_post %}
|
||||
{% if list_posts %}
|
||||
<h2> Les derniers articles de blog sur le serveur </h2>
|
||||
<div class="list-articles" >
|
||||
|
||||
@ -49,7 +49,7 @@
|
||||
<article>
|
||||
<header>
|
||||
<h3> {{ article.title }} </h3>
|
||||
<h5> par <a href="/blog/{{ article.author }}/">/{{ article.author }}</a> </h5>
|
||||
<h5> par <a href="/blog/{{ article.author }}/">{{ article.author }}</a> </h5>
|
||||
<br/>
|
||||
<small> Créé le : {{ article.creation_date }} </small> <br/>
|
||||
{% if article.last_updated %}
|
||||
|
||||
@ -13,8 +13,9 @@
|
||||
|
||||
|
||||
{% else %}
|
||||
|
||||
<a href="/blog/{{ author }}/rss.xml"> S'abonner au flux RSS </a>
|
||||
<div class="articles">
|
||||
<a href="/blog/{{ author }}/rss.xml"> S'abonner au fl RSS </a>
|
||||
{% for post in posts %}
|
||||
|
||||
<h2 class="index"> {{ post.title }} </h2>
|
||||
|
||||
@ -20,7 +20,7 @@
|
||||
|
||||
|
||||
<div class="articles">
|
||||
<a href="/blog/rss.xml"> S'abonner au flux RSS </a>
|
||||
<a href="/blog/rss.xml"> Suivre ce blog par RSS </a>
|
||||
{% for post in posts %}
|
||||
|
||||
<h2 class="index"> {{ post.title }}</h2>
|
||||
|
||||
@ -223,7 +223,7 @@ def viewuser(author):
|
||||
posts=[dict(title=post[0], subtitle=post[1], creation_date=post[2], last_updated=post[3], author=post[4], status=post[5])] + posts
|
||||
|
||||
|
||||
return render_template('index_author_blog.html', section='Blog', posts=posts, author=author)
|
||||
return render_template('index_blog.html', section='Blog', posts=posts, author=author)
|
||||
|
||||
@blog.route('/blog/<author>/rss.xml', methods=['GET'])
|
||||
def viewauthorrss(author):
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user