{% extends "planet/base.html" %}
{% load i18n pagination_tags planet_tags %}

{% block head_title %}
  {% trans 'Django Blogs Aggregator' %}{{ block.super }} :: {{ site.name }}
{% endblock %}

{% block extra_head %}
    {% post_titles posts 10 as recent_titles %}
    <meta name="robots" content="index, follow" />
    <meta name="description" content="{% blocktrans with site_name=site.name titles=recent_titles %}{{ site_name }} is a planet website aggregating the best Django blogs. Recent posts: {{ titles }}{% endblocktrans %}" />
    <meta property="og:type" content="website" />
    <meta property="og:url" content="https://{{ site.domain }}{% url 'planet:post-list' %}" />
    <meta property="og:title" content="{% blocktrans with site_name=site.name %}{{ site_name }}: Django-related news &amp; blogs aggregator{% endblocktrans %}" />
    <meta property="og:description" content="{% blocktrans with site_name=site.name titles=recent_titles %}{{ site_name }} is a planet website aggregating the best Django blogs. Recent posts: {{ titles }}{% endblocktrans %}" />
    <link rel="canonical" href="https://{{ site.domain }}{% url 'planet:post-list' %}"/>
{% endblock %}

{% block breadcrumb_section %}
    <li class="breadcrumb-item active" aria-current="page">{% trans 'Posts' %}</li>
{% endblock %}

{% block posts_class %}class="active"{% endblock %}

{% block content %}
    <h1 class="mb-4">{% trans "What's new in Django community blogs?" %}</h1>
    <div class="content pd-0">
    {% autopaginate posts 10 %}
    {% for post in posts %}
        <div class="row post">
            {% include "planet/posts/details.html" %}
        </div>
    {% endfor %}
    {% paginate %}
    </div>
{% endblock %}

{% block right_column %}
    {% recent_blogs %}
{% endblock %}
