10 lines
244 B
HTML
10 lines
244 B
HTML
|
|
{% extends 'blog/base.html' %}
|
|
|
|
{% block content %}
|
|
{% for post in posts %}
|
|
<h2><a href="{% url 'post_detail' post.pk %}">{{ post.title }}</a></h2>
|
|
<p>{{ post.content|truncatewords:30 }}</p>
|
|
{% endfor %}
|
|
{% endblock %}
|