{% extends 'partials/_base.html' %} {% load static %} {% block content %}
{% for randompost in randomposts %}
{{ randompost.category.name }}
Colorlib {{ 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 %}
Colorlib {{ 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 %}