<!DOCTYPE html>
<html lang="{{ .Site.Language.Lang }}">
{{ partial "head.html" . }}
<body hx-boost="true" lang="{{ .Site.Language.Lang }}">
  {{ partial "nav.html" . }}
  <div id="page-content">
  <div id="home-introduction" class="row container">
    {{ range sort (index .Site.Data.introduction .Site.Language.Lang) "weight" }}
    <div class="col l4 m4 s12" style="margin-bottom: 20px;">
      {{ if (fileExists (printf "assets/%s" .image )) -}}
      {{ $mainimage := resources.Get .image }}
      <a href="{{ .url }}"><img alt="{{ .title }}" class="img-thumbnail img-fluid" src="{{ $mainimage.RelPermalink }}" ></a>
      {{ end }}

      <h4><a href="{{ .url }}">{{ .title }}</a></h4>
    </div>
    {{ end }}
  </div>

    <div id="home-blog-posts" class="container">
      <div class="row">
          <div class="col m12 l12">
              {{ partial "home-blog-posts.html" . }}
          </div>
      </div>
  </div>

  {{ partial "home-bottom.html" . }}
  </div>
  {{ partial "footer.html" . }}
</body>
</html>