<!DOCTYPE html>
<html lang="{{ .Site.Language.Lang }}">

{{ partial "head.html" . }}

<body lang="{{ .Site.Language.Lang }}">
  {{ partial "nav.html" . }}

  <header class="blog-single">
    <div class="container">
      <div class="row">
        <div class="col-md-9">
          <h2><a href="{{ "blog/ibis"  | relLangURL }}">IBIS Blog</a></h2>
          {{ partial "widgets/categoriesibis.html" . }}
          <h3 class="title">{{ .Title }}</h3>
        </div>
      </div>
    </div>
  </header>

  <div id="content">
    <div class="container">
        <div class="row">
            <div class="col-md-9">
                <section class="col-sm-12">
                    <article>
                      {{ if isset .Params "images"}}
                      {{ if (fileExists (printf "assets/%s" (index .Params.images 0))) -}}
                      {{ $mainimage := resources.Get (index .Params.images 0) }}
                        <p class="text-center"><img class="img-fluid" src="{{ $mainimage.RelPermalink }}"
                          width="500">
                      </p>
                      {{ end }}
                      {{ end }}

                      <div style="text-align: justify;">
                        {{ .Content }}
                      </div>

                      <small>{{ i18n "publishdate"}} : {{.PublishDate.Format "2006-01-02"}}</small> | <small>{{ i18n "lastchange"}} : {{.Lastmod.Format "2006-01-02"}}</small>

                      {{ partial "widgets/ibiscattags.html" . }}

                    </article>
                </section>
            </div>
            
            {{ partial "widgets/ibissidebar.html" . }}
        </div>
    </div>
  </div>
  <!-- /#content -->

  {{ partial "footer.html" . }}

</body>
</html>
