{% extends 'base.html' %}

{% block title %}Home{% endblock %}

{% block body %}
{% for data in home_data %}
<div class="row">
    <div class="col-md-6">
        <div class="panel panel-post-summary">
            <div class="panel-heading">
                <a href="{% url 'board:post_list' data.board.slug %}">{{ data.board.name }}</a>
            </div>
            <div class="panel-body">
                <table class="table table-hover">
                    <tbody>
                        {% for post in data.recent_posts %}
                            <tr>
                                <td><a href="{% url 'board:view_post' post.id %}">{{ post.title|truncatechars:40 }}</a></td>
                            </tr>
                        {% endfor %}
                    </tbody>
                </table>
            </div>
        </div>
    </div>
</div>
{% endfor %}
{% endblock %}

{% extends 'base.html' %}

{% block title %}Home{% endblock %}

{% block body %}
{% for data in home_data %}
    {% if not forloop.counter|divisibleby:"2" %}
        <div class="row">
    {% endif %}
    <div class="col-md-6">
        <div class="panel panel-post-summary">
            <div class="panel-heading">
                <a href="{% url 'board:post_list' data.board.slug %}">{{ data.board.name }}</a>
            </div>
            <div class="panel-body">
                <table class="table table-hover">
                    <tbody>
                        {% for post in data.recent_posts %}
                            <tr>
                                <td><a href="{% url 'board:view_post' post.id %}">{{ post.title|truncatechars:40 }}</a></td>
                            </tr>
                        {% endfor %}
                    </tbody>
                </table>
            </div>
        </div>
    </div>
    {% if forloop.counter|divisibleby:"2" %}
        </div>
    {% endif %}
{% endfor %}
{% endblock %}

Fix construct structure of html
Fix construct structure of html
