{% import 'grid_classes.html.twig' as grid %}

<div class="entry-header">
	{% if post.thumbnail and theme.theme_mod('feat_img_height', 60) %}
		{% if ( post.post_type != 'post' and theme.theme_mod('feat_img_post_only', 1) != 1 ) or post.post_type == 'post' %}
			<div class="{% if layout == '0' %}parallax-container {% endif %}featured-image">
				<a class="{% if layout == '0' %}parallax {% endif %}featured-image" href="{{ post.link }}" title="{{ post.title }}">
					<img class="featured-image" {% if layout == '0' %}src="{{ post.thumbnail.src }}"{% else %}src="{{ post.thumbnail.src|resize(thumbnail.width, thumbnail.height) }}" srcset="{{ post.thumbnail.src|resize(thumbnail.width, thumbnail.height)|retina(1) }} 1x, {{ post.thumbnail.src|resize(thumbnail.width, thumbnail.height)|retina(2) }}  2x"{% endif %}>
				</a>
			</div>
		{% endif %}
	{% endif %}
	<div class="{% if layout == '0' %}container {% endif %}entry-content{% if theme.theme_mod('flow_text_content') == 1 %} flow-text{% endif %}" itemprop="description">
		{% do action( 'maera/teaser/start', post.ID ) %}
		<title itemprop="name">{{ post.title }}</title>
		<h2 class="entry-title"><a href="{{ post.link }}">{{ post.title|apply_filters( 'maera/title' ) }}</a></h2>
		{% if post.post_type == 'post' %}
			{% include 'content-single-entry-meta.twig' %}
		{% endif %}
	</div>
</div>
