<!DOCTYPE html>
<html class="homepage">
<head>
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta http-equiv="refresh" content="0; url={{ page.redirect.to }}">
    <title>{{ site.data.project.tagline }} - {{ site.data.project.title }}</title>
    {% include meta.html %}
</head>

<body>
<header>
    <div class="inner-content">
      <h1>{{ site.data.project.title }}</h1>
      <h2>{{ site.data.project.tagline }}</h2>
      <p class="composer"><span>{{ site.data.project.composer }}</span></p>
    </div>
</header>

<main>
  <div class="highlights">
    <div class="inner-content">
      <h1>Redirecting…</h1>
      <div class="content">
      <a href="{{ page.redirect.to }}" style="color:#ff4043">Click here if you are not redirected.</a>
      <script>location="{{ page.redirect.to }}"</script>
      </div>
    </div>
  </div>
    <div class="flex-auto max-w-2xl min-w-0 px-4 py-10 lg:max-w-4xl lg:pr-0 lg:pl-8 xl:px-16">
        <article class="content">
            {% if version == site.data.project.releases.next.version %}
            <p class="message-notice">This is the documentation for the upcoming <code>version {{ version }}</code>. This is a work in progress</p>
            {% endif %}

            {% if version == site.data.project.releases.previous.version %}
            <p class="message-notice">This is the documentation for <code>version {{ version }}</code> which will be supported until <strong>{{ site.data.project.releases.previous.supported_until }}</strong>. Please consider upgrading your code to <a href="{{ site.data.project.releases.current.documentation_link }}">the latest stable version</a></p>
            {% endif %}

            {% if version == site.data.project.releases.legacy.version %}
            <p class="message-notice">This is the documentation for the unsupported <code>version {{ version }}</code>. Please consider upgrading your code to <a href="{{ site.data.project.releases.current.documentation_link }}">the latest stable version</a></p>
            {% endif %}
            {{ content }}
        </article>
    </div>
</main>
{%- include footer.html -%}
</body>
</html>
