<div class="mid">
  <div class="divider">

    <nav id="list-menu" class="l" data-dir="{{ $.context.Param "languagedir" | default "ltr" }}">
      {{ if $.context.Param "enableMenu" }}
        {{ partial "main/sections/list-menu.html" .context }}
      {{ end }}
    </nav>

    <article id="list-main" class="m" data-dir="{{ $.context.Param "languagedir" | default "ltr" }}">
      {{ partial "main/sections/list-main.html" .context }}
      {{ if .section_to_display }}
        {{ partial "main/sections/list-section.html" (dict "section_to_display" .section_to_display) }}
      {{ end }}
      {{ partial "main/component/pagination-single.html" .context }}
    </article>

    <section id="list-side" class="r" data-dir="{{ $.context.Param "languagedir" | default "ltr" }}">
    </section>

  </div>
</div>

<script>
  var listSide = document.getElementById('list-side');
  var listMain = document.getElementById('list-main');
  var listMenu = document.getElementById('list-menu');
  
  enquire.register("screen and (max-width:1280px)", {
    match: function () {
      listSide.className = 'r';
      listMain.className = 'm';
      listMenu.className = 'l';
    },
    unmatch: function () {
      listSide.className = 'r';
      listMain.className = 'm';
      listMenu.className = 'l';
    },
  }).register("screen and (max-width:960px)", {
    match: function () {
      listSide.className = 'hide';
      listMain.className = 'mr';
      listMenu.className = 'l';
    },
    unmatch: function () {
      listSide.className = 'r';
      listMain.className = 'm';
      listMenu.className = 'l';
    },
  }).register("screen and (max-width:600px)", {
    match: function () {
      listSide.className = 'hide';
      listMain.className = 'lmr';
      listMenu.className = 'hide';
    },
    unmatch: function () {
      listSide.className = 'hide';
      listMain.className = 'mr';
      listMenu.className = 'l';
    },
  });
</script>