Correction for new blog system

This commit is contained in:
2026-03-22 21:31:13 +01:00
parent 0f84afc99a
commit f5d8636f1d
5 changed files with 9 additions and 9 deletions

View File

@@ -61,7 +61,7 @@
</div>
<a href="/blog/public_unified/{{ article.author }}/{{ article.title_id }}"> <button> Lire la suite </button> </a>
<a href="{{ url_for('blog.viewArticle', username=article.author, title_id=article.title_id) }}"> <button> Lire la suite </button> </a>
</article>

View File

@@ -18,8 +18,8 @@
<item>
<title> {{ post.title }} </title>
<pubdate> {% if post.last_updated %} {{ post.last_updated }} {% else %} {{ post.time }} {% endif %} </pubdate>
<link> {{base_url}}/blog/{{ post.status }}/{{post.author}}/{{post.title_id}}</link>
<guid> {{base_url}}/blog/{{ post.status }}/{{post.author}}/{{post.title_id}}</guid>
<link> {{base_url}}/{{ url_for('blog.viewArticle', username=post.author, title_id=post.title_id) }}</link>
<guid> {{base_url}}/{{ url_for('blog.viewArticle', username=post.author, title_id=post.title_id) }} </guid>
<description>
{{ post.subtitle }}

View File

@@ -33,7 +33,7 @@
</small>
<div class="slug">
<p> {{ post.subtitle }} </p>
<p class="readmore"> <a style="margin-right:2rem;" href="/blog/{{ post.status }}/{{post.author}}/{{post.title_id}}"> Lire la suite... </a></p>
<p class="readmore"> <a style="margin-right:2rem;" href="{{ url_for('blog.viewArticle', username=post.author, title_id=post.title_id) }}"> Lire la suite... </a></p>
</div>
{% endfor %}
</div>

View File

@@ -38,7 +38,7 @@
</small>
<div class="slug">
<p> {{ post.subtitle }} </p>
<p class="readmore"> <a style="margin-right:2rem;" href="/blog/{{ post.status }}/{{post.author}}/{{post.title_id}}"> Lire la suite... </a></p>
<p class="readmore"> <a style="margin-right:2rem;" href="{{ url_for('blog.viewArticle', username=post.author, title_id=post.title_id) }}"> Lire la suite... </a></p>
</div>
{% endfor %}
</div>