Bard is not rendering

I just created this page in Statamic. It's a Multipage side, with german as default content, and English as a subpage. In order to make it dynamic for content managers, I'd like to use bard.

If i render the content with simple {{ content }} it works fine (it renders the p tags). however:

{{ content }}
  {{ if type == "text" }}

    <div class="text">
      {{ text }}
    </div>

  {{ elseif type == "image" }}

    <figure>
      <img src="{{ image }}" alt="{{ caption }}" />
      <figcaption>{{ caption }}</figcaption>
    </figure>

  {{ /if }}
{{ /content }}

isn't doing anything.

home.md

---
title: Home
template: default
author: ba40e710-9e39-44b1-adf4-15b075d873aa
updated_by: ba40e710-9e39-44b1-adf4-15b075d873aa
updated_at: 1608717624
content_title: 'Das neue Vertriebsgesicht nach dem Messe-aus: Virtrex'
id: home
content:
  -
    type: paragraph
    content:
      -
        type: text
        text: 'Deutscher Content!'
---

pages blueprint:

title: Pages
sections:
  main:
    display: Main
    fields:
      -
        handle: title
        field:
          type: text
          required: true
          validate:
            - required
          localizable: true
      -
        handle: content
        field:
          always_show_set_button: false
          buttons:
            - h2
            - h3
            - bold
            - italic
            - unorderedlist
            - orderedlist
            - removeformat
            - quote
            - anchor
            - image
            - table
          save_html: false
          toolbar_mode: fixed
          link_noopener: false
          link_noreferrer: false
          target_blank: false
          reading_time: false
          fullscreen: true
          allow_source: true
          display: Content
          type: bard
          icon: bard
          listable: hidden
          localizable: true
  sidebar:
    display: Sidebar
    fields:
      -
        handle: slug
        field:
          type: slug
          required: true
          localizable: true
          validate:
            - required
      -
        handle: parent
        field:
          type: entries
          collections:
            - pages
          max_items: 1
          listable: false
          localizable: true
      -
        handle: author
        field:
          type: users
          display: Author
          default: current
          localizable: true
          max_items: 1
      -
        handle: template
        field:
          type: template
          display: Template
          localizable: true

pages.yaml

title: Pages
sites:
  - default
  - english
revisions: false
route: '{parent_uri}/{slug}'
structure:
  root: true
  tree:
    default:
      -
        entry: home
    english:
      -
        entry: 1de28ae0-ac5a-45fc-b019-8758a1f7b6ac
>>>>>>> Unanswered <<<<<<<
1 Reply
1 Follower