{% extends 'partials/_base.html' %} {% load static %} {% block content %} {% for randompost in randomposts %} {{ randompost.category.name }} {{ randompost.author.username }}• {{ randompost.created | date }} • {{ randompost.getHitCount }} {{ randompost.title | title }} {{ randompost.content | safe | linebreaks | truncatechars:100 }} {% endfor %} Latest Posts {% if latestposts %} {% for latestpost in latestposts %} {{ latestpost.author.username | title }} • {{ latestpost.created | date }} • {{ latestpost.category.name }} • {{ latestpost.getHitCount }} {{ latestpost.title | title}} {{ latestpost.content|safe|linebreaks|truncatechars:100 }} {% endfor %} {% else %} The article to be listed was not found! {% endif %} Show All Posts {% endblock %}
{{ randompost.content | safe | linebreaks | truncatechars:100 }}
{{ latestpost.content|safe|linebreaks|truncatechars:100 }}