{% extends "djcms_blog/base_blog.html" %}
{% load djcms_blog %}
{% load i18n %}
{% get_available_languages as languages %}

{% block navigation %}
    <a href="{% url 'blog-main' blog_slug=object.blog.slug %}" class="item">{% blog_root_title %}</a>
    <div class="right menu">
        {% for lang_code, lang_name in languages %}
            {% language lang_code %}
            <a class="ui black button item {% ifequal LANGUAGE_CODE lang_code %}active{% endifequal %}" href="{% url 'tag-main' blog_slug=object.blog.slug tag_slug=object.slug %}">{{ lang_name }}</a>
            {% endlanguage %}
        {% endfor %}
    </div>
{% endblock %}

{% block nav_navigation %}
<a href="{% url 'blog-main' blog_slug=object.blog.slug %}" class="header item">
    <img class="ui circular image logo" src="{% blog_navbar_image %}"> {% blog_root_title %}
</a>
{% endblock %}

{% block title %}
{{object.name}}
{% endblock %}

{% block content %}
{% include "djcms_blog/post_list.html" %}
{% endblock content %}
