{% extends "index" %}
{% set image = entry.teaserImage.one() %}
{% set baseurl = craft.app.sites.primarySite.baseUrl %}
{% set siteurl = currentSite.baseUrl %}
{% block content %}
<div class="mt32">
	<div class="maxWidthLimit wm-rich-text">
		<h1>{{entry.title}}</h1>
		<div class="fact-filters wm-nav-tag__list mt16">
			{% for thema in craft.entries.section('themen') %}
			{% if (thema.slug|t(language="de") in entry.kategorien) %}
			<a id="{{thema.slug}}" href="{{siteurl}}facts?category={{thema.slug}}" class="wm-nav-tag__link"
				value="{{thema.slug}}">{{thema.title}}</a>
			{% endif %}
			{% endfor %}
		</div>
		<div class="wm-row mt32">
			<div>{{entry.teaser}}</div>
			<div><img class="wm-image wm-card__image" loading="lazy" src="{{ baseurl }}/{{image.url}}" height="200" data-src=""
					alt="Bildbeschreibung">
				{% if image.caption %}<figcaption>{{image.caption}}</figcaption>{% endif %}
			</div>
		</div>
		<div class="wm-row column mt32">
			{{entry.richText}}
		</div>
	</div>
</div>
{% endblock %}