51 lines
		
	
	
		
			1.5 KiB
		
	
	
	
		
			HTML
		
	
	
	
	
	
			
		
		
	
	
			51 lines
		
	
	
		
			1.5 KiB
		
	
	
	
		
			HTML
		
	
	
	
	
	
| {# article sert aux pages ET aux articles #}
 | |
| {% extends "base.html" %}
 | |
| {% block title %}{{ SITENAME|striptags }} - {{ article.title|striptags  }}{% endblock %}
 | |
| {% block head %}
 | |
| {{ super() }}
 | |
| {% if article.description %}
 | |
|   <meta name="description" content="{{article.subtitle}} {{article.description}}" />
 | |
| {% endif %}
 | |
| {% for tag in article.tags %}
 | |
|   <meta name="tags" content="{{tag}}" />
 | |
| {% endfor %}
 | |
| {% endblock %}
 | |
| 
 | |
| {% block content %}
 | |
| <article>
 | |
|   <hgroup>
 | |
|   <h1>
 | |
|     {{ article.title }}
 | |
|   </h1>
 | |
|   <p>
 | |
|     {% if article.modified %}
 | |
|     Modifié le <time datetime="{{ article.modified.isoformat() }}">{{ article.modified|strftime('%A %d %B %Y') }}</time>
 | |
|     {% else %}
 | |
|     Publié le <time datetime="{{ article.date.isoformat() }}">{{ article.date|strftime('%A %d %B %Y') }}</time>
 | |
|     {% endif %}
 | |
|     
 | |
|     {% if DISPLAY_AUTHORS %}
 | |
|     {% if article.authors %}
 | |
|     par 
 | |
|     {% for author in article.authors %}
 | |
|     <a href="{{ SITEURL }}/{{ author.url }}">{{ author }}</a>{% if loop.last %} {% else %},{% endif %}
 | |
|     {% endfor %}
 | |
|     {% endif %}
 | |
|     {% endif %}
 | |
| 
 | |
|     {% if article.category %}
 | |
|     dans la catégorie <a href="{{ SITEURL }}/{{ article.category.url }}">{{ article.category }} </a>
 | |
|     {% endif %}
 | |
|     
 | |
|     {% if article.tags %}
 | |
|     avec le(s) mot(s) clé(s) 
 | |
|     {% for tag in article.tags %}
 | |
|     <a href="{{ SITEURL }}/{{ tag.url }}">{{ tag }}</a>{% if loop.last %}.{% else %},{% endif %}
 | |
|     {% endfor %}
 | |
|     {% endif %}
 | |
|   </p>
 | |
| </hgroup>
 | |
|   {{ article.content }}
 | |
| </article>
 | |
| {% endblock %}
 |