<article class="{{ include.type | default: "post" }}">
	{% if include.title %}
	<div class="title">
		{% if include.index %}
		<a href="{{ include.permalink | absolute_url }}">
		{% endif %}
		{{ include.title }}
		{% if include.index %}
		</a>
		{% endif %}
	</div>
	{% endif %}
	<div class="content">
		{{ include.content }}
	</div>
	{% if include.index %}
	<div class="readmore">
		<a class="readmore" href="{{ include.permalink | absolute_url }}">
			{{ site.xaymar.index.readmore }}
		</a>
	</div>
	{% endif %}
	{% if site.xaymar.meta.permalink.enabled and include.permalink != nil %}
		{% assign has_meta_permalink=true %}
	{% endif %}
	{% if site.xaymar.meta.timestamp.enabled and include.timestamp %}
		{% assign has_meta_timestamp=true %}
	{% endif %}
	{% assign cnt=include.tags | size %}
	{% if site.xaymar.meta.tags.enabled and include.tags != nil and cnt > 0 %}
		{% assign has_meta_tags=true %}
	{% endif %}
	{% if site.xaymar.meta.enabled and has_meta_permalink or has_meta_tags or has_meta_date %}
	<div class="meta">
		{% if has_meta_permalink %}
		<a class="permalink" href="{{ include.permalink | absolute_url }}">
			{% if include.timestamp %}<time datetime="{{ include.timestamp | date_to_xmlschema }}">{% endif %}
			Permalink
			{% if include.timestamp %}</time>{% endif %}
		</a>
		{% endif %}
		{% if has_meta_timestamp %}
		<time class="timestamp" datetime="{{ include.timestamp | date_to_xmlschema }}">
			{{ include.timestamp | date_to_string }}
		</time>
		{% endif %}
		{% if has_meta_tags %}
		<div class="tags">
			<span>Tags:</span>
			{% for entry in include.tags %}
				{% assign tag=entry | slugify: site.xaymar.links.tag.slugify %}
				<span class="tag"><a href="{{ site.xaymar.links.tag.permalink | replace: ":tag", tag | absolute_url }}">{{ entry }}</a></span>
			{% endfor %}
		</div>
		{% endif %}
	</div>
	{% endif %}
</article>
