ERROR: Cannot render an array variable as a string:

There is a problem!

index.md

title: 'Homepage'
id: 0315c406-bc01-4885-9605-f2a7f02fee96
template: home
layout: main
fieldset: main
banners:
  -
    type: banner
    visual: assets/uzmebel.gif
    targeting: www.google.kz

home.html

{{ banners }}
<ul class="list-inline banners">
    {{ if set == "banner" }}
    <li>
        <a href="{{ targeting }}" target="_blank" rel="nofollow">
            <img src="{{ visual }}">
        </a>
    </li>
    {{ /if }}
</ul>
{{ banners }}

main.yaml

fields:
  template:
    type: template
  banners:
    type: replicator
    sets: 
      banner:
        fields:
          visual:
            type: assets
          targeting:
            type: markdown

How to solve?

Solved~~~~

>>>>>>> Unanswered <<<<<<<
1 Reply
2 Followers