23 lines
743 B
HTML
23 lines
743 B
HTML
{% extends 'blog/base.html' %}
|
|
{% load pagination_tags %}
|
|
{% block content %}
|
|
|
|
{% for post in posts %}
|
|
<div class="block post">
|
|
<h1><a href="{% url 'post_detail' pk=post.pk %}">{{ post.title }}</a></h1>
|
|
{{ post.text|safe|linebreaksbr|truncatewords:80 }} <!--|linebreaksbr|truncatewords:80 }}</p--><br>
|
|
<p style="float: left; color: #1abc9c; font-style: italic;">
|
|
{% if post.tags.names %}
|
|
Tags:
|
|
{% for tag in post.tags.names %}
|
|
<a href="{% url 'search_by_tag' tag=tag%}" style="color: #1abc9c; ">{{ tag }}</a>
|
|
{% endfor %}
|
|
{% endif %}
|
|
</p>
|
|
<p align="right" style="float: right"> {{ post.published_date}}</p>
|
|
</div>
|
|
|
|
{% endfor %}
|
|
|
|
{% endblock content %}
|