Ajout d'un champ description au modèle Post avec migration associée, mise à jour des templates pour utiliser ce champ, et amélioration du formatage des commentaires Markdown avec gestion des titres typographiques.
This commit is contained in:
parent
43af8bd0d8
commit
4a48425374
6 changed files with 38 additions and 4 deletions
|
|
@ -1,4 +1,5 @@
|
|||
{% extends 'layout.html' %}
|
||||
{% load comment_format %}
|
||||
{% block title %} | Blog : {{ post.name }}{% endblock %}
|
||||
{% block og_title %}Blog de Partir De Zéro : {{ post.name }}{% endblock %}
|
||||
{% block description %}{{ post.content|striptags|truncatewords:20 }}{% endblock %}
|
||||
|
|
@ -18,7 +19,7 @@
|
|||
</header>
|
||||
|
||||
<article class="post-content prose">
|
||||
{{ post.content|safe }}
|
||||
{{ post.content|comment_markdown }}
|
||||
</article>
|
||||
</section>
|
||||
{% endblock %}
|
||||
Loading…
Add table
Add a link
Reference in a new issue