{{ if ( .Scratch.Get "listMode" ) }}
<table>
  <thead>
    <tr>
      {{ if ( and ( in site.Params.mainSections .Section ) ( in "current log wishlist" ( .Scratch.Get "page" ) ) ) }}
      {{ partial ( printf "%s/%s" .Section "table-header" ) . }}
      {{ end }}
    </tr>
  </thead>
  <tbody>
    {{ if ( and ( in site.Params.mainSections .Section ) ( in "current log wishlist" ( .Scratch.Get "page" ) ) ) }}
    {{ partial ( printf "%s/%s" .Section "table-body" ) . }}
    {{ end }}
  </tbody>
<table>
{{ end }}
