title: How can i use batch in correlation with the iterations of a query using twig?
body: <p>I am trying to batch the content of a section while always batching half the amount that is to display.</p>
  <pre><code>{% for entry in craft.entries.section('bilder').datum(['and', '&gt;= 2019-01-01', '&lt; 2019-12-31']).limit(-1)|batch({{loop.length/2}})%}
         &lt;div class=&quot;column&quot; id=&quot;verstecken&quot;&gt;
             {% for value in entry %}
                 {% set bild = value.bild.one() %}
                 &lt;img src=&quot;{{ bild.url }}&quot; alt=&quot;{{ value.title }}&quot;&gt;
             {% endfor %}
         &lt;/div&gt;
  {% endfor %}
  </code></pre>
  <p>this wont work, because <em>A hash key must be a quoted string, a number, a name, or an expression enclosed in parentheses (unexpected token &quot;punctuation&quot; of value &quot;{&quot;.</em></p>
  <p>I'm kinda stuck on this one. Not sure if batch is even the rigt thing to use.</p>