Add user theme in list articles

This commit is contained in:
2025-12-22 01:57:28 +01:00
parent 89400555ed
commit 3266b02be7
3 changed files with 10 additions and 6 deletions

View File

@@ -2,7 +2,11 @@
<html>
<head>
<title> Le Blog du serveur </title>
{% if author %}
<link rel="stylesheet" href="/{{author}}/blog.css" type="text/css">
{% else %}
<link rel="stylesheet" href="/static/blog.css" type="text/css">
{% endif %}
<meta name="viewport" content="width=device-width, initial-scale=1">
</head>
@@ -19,7 +23,7 @@
<a href="/blog/rss.xml"> S'abonner au flux RSS </a>
{% for post in posts %}
<h2 class="index"><a href="/blog/{{post.author}}/{{post.title}}"> {{ post.title }}</a></h2>
<h2 class="index"><a href="/blog/{{ post.status }}/{{post.author}}/{{post.title}}"> {{ post.title }}</a></h2>
<small>
<time datetime="{{ post.time }}">
Publié le {{ post.creation_date }} par <a href="{{ url_for('blog.view') }}/{{ post.author }}"> {{ post.author }}</a>