{% for most in suggestedPost %}
{% if forloop.first %}
{% for cat in most.categories.all %}
{{ cat.nom }}
{% endfor %}
{% endif %}
{% endfor %}
{{ most.title }}
- {{ most.created_on | date:'d M Y' }}
- {{ most.views }} vue(s)
{{ most.body | truncatechars:30 }}
{% for mostS in suggestedPost %}
{% endfor %}
{{ mostS.title }}
- {{ mostS.created_on | date:'d M Y' }}
- {{ mostS.views }}
Commentaires
{% for comment in comments %}-
- {{ comment.author }}
{% endfor %}
{{ comment.body }}