Add user theme in list articles
This commit is contained in:
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user