{% extends 'base.html' %}

{% block content %}

<div class="dummy"></div>

{% for p in post1 %}

<div class='each_block'>
<div class='tag'>{{p.tagname}}</div>
<div class='heading'><a href ="{% url 'detail' p.pk  %}">{{p.title}}</a></div>
<span class='name'>This article is shared by&nbsp;{{p.author}}</span>
<div class='body'>{{p.body|truncatewords:30}}&nbsp;<a href ="{% url 'detail' p.pk  %}">Continue reading</a>
</div>
<hr>
</div>
{% endfor %}
{% for p in post2 %}

<div class='each_block'>
<div class='tag'>{{p.tagname}}</div>
<div class='heading'><a href ="{% url 'detail' p.pk  %}">{{p.title}}</a></div>
<span class='name'>This article is shared by&nbsp;{{p.author}}</span>
<div class='body'>{{p.body|truncatewords:30}}&nbsp;<a href ="{% url 'detail' p.pk  %}">Continue reading</a>
</div>
<hr>
</div>
{% endfor %}
{% for p in post3 %}

<div class='each_block'>
<div class='tag'>{{p.tagname}}</div>
<div class='heading'><a href ="{% url 'detail' p.pk  %}">{{p.title}}</a></div>
<span class='name'>This article is shared by&nbsp;{{p.author}}</span>
<div class='body'>{{p.body|truncatewords:30}}&nbsp;<a href ="{% url 'detail' p.pk  %}">Continue reading</a>
</div>
<hr>
</div>
{% endfor %}
{% for p in post11 %}

<div class='each_block'>
<div class='tag'>{{p.tagname}}</div>
<div class='heading'><a href ="{% url 'detail' p.pk  %}">{{p.title}}</a></div>
<span class='name'>This article is shared by&nbsp;{{p.author}}</span>
<div class='body'>{{p.body|truncatewords:30}}&nbsp;<a href ="{% url 'detail' p.pk  %}">Continue reading</a>
</div>
<hr>
</div>
{% endfor %}
{% for p in post12 %}

<div class='each_block'>
<div class='tag'>{{p.tagname}}</div>
<div class='heading'><a href ="{% url 'detail' p.pk  %}">{{p.title}}</a></div>
<span class='name'>This article is shared by&nbsp;{{p.author}}</span>
<div class='body'>{{p.body|truncatewords:30}}&nbsp;<a href ="{% url 'detail' p.pk  %}">Continue reading</a>
</div>
<hr>
</div>
{% endfor %}
{% for p in post13 %}

<div class='each_block'>
<div class='tag'>{{p.tagname}}</div>
<div class='heading'><a href ="{% url 'detail' p.pk  %}">{{p.title}}</a></div>
<span class='name'>This article is shared by&nbsp;{{p.author}}</span>
<div class='body'>{{p.body|truncatewords:30}}&nbsp;<a href ="{% url 'detail' p.pk  %}">Continue reading</a>
</div>
<hr>
</div>
{% endfor %}
{% for p in post %}

<div class='each_block'>
<div class='tag'>{{p.tagname}}</div>
<div class='heading'><a href ="{% url 'detail' p.pk  %}">{{p.title}}</a></div>
<span class='name'>This article is shared by&nbsp;{{p.author}}</span>
<div class='body'>{{p.body|truncatewords:30}}&nbsp;<a href ="{% url 'detail' p.pk  %}">Continue reading</a>
</div>
<hr>
</div>
{% endfor %}

{% endblock %}
