Error in template

Hi, I get this error for the following piece of template code (narrowed down by removing other template code and this is the only one that causes the error)

ERROR: <path>\layouts\_default\taxonomy.html:34:1": parse failed: template: _default/taxonomy.html:34: unexpected EOF

Template code:
<div class="tag" {{ range first 1 .Data.Pages }} style="background-image: {{ with .Params.image }} url( {{ . }} );" {{ end }}>

Any ideas where I’m missing an {{end}} or something?

Generally, I have noticed that the unexpected EOF means a missing {{ end }}.

with requires an {{ end }}, so does range.

1 Like

This topic was automatically closed 2 days after the last reply. New replies are no longer allowed.