{% extends 'partials/base.html.twig' %}

{% set base_url = page.parent.url %}
{% set feed_url = base_url %}
{% set show_breadcrumbs = header_var('show_breadcrumbs')|defined(true) %}
{% set show_sidebar = header_var('show_sidebar')|defined(false)  %}

{% if base_url == '/' %}
	{% set base_url = '' %}
{% endif %}

{% if base_url == base_url_relative %}
	{% set feed_url = base_url~'/'~page.parent.slug %}
{% endif  %}

{% block menu %}
	{% include 'partials/sidebar_right.html.twig' %}
{% endblock %}

{% block content %}
	{% if show_breadcrumbs and config.plugins.breadcrumbs.enabled %}
		<div class="heading">
			{% include 'partials/breadcrumbs.html.twig' %}
		</div>
	{% endif %}

	{% include 'partials/blog_item.html.twig' with {'listing': false, 'truncate':false} %}

	{% if show_sidebar == false %}
		<section id="footer" class="align-center">
			{% include 'partials/footer.html.twig' %}
		</section>
	{% endif %}
{% endblock %}

{% block sidebar %}
{% if show_sidebar == true %}
	{% include 'partials/sidebar_left.html.twig' %}
{% endif %}
{% endblock %}
