New: Learn Statamic on Laracasts!

We've retired the forum in favor of GitHub Discussions.

New conversations can be started on GitHub. Existing conversations will remain for a while longer.

Head over to GitHub →

Statamic not recognizing format

Bart Clarebout December 9, 2018 by Bart Clarebout

I am making a page based on a replicator field as shown in the videos.

PAGE: index.md:

id: c971bb86-1dc3-435a-9a0c-00f1fd478634
title: Privacy Policy
template: privacy_policy
fieldset: privacy_policy
blocks:
  -
    type: hero
    title: Privacy Policy
  -
    type: panel
    content: >
      This is the content

FIELDSET: privacy_policy.yaml

title: privacy policy
fields:
  template:
    type: template
  blocks:
    type: replicator
    set:
      hero:
        fields:
          title:
            type: text
      panel:
        fields:
          content:
            type: markdown

TEMPLATE: privacy_policy.html

{{ blocks }}
  {{ if type == "hero" }}
    <div class="hero">
      {{ title }}
    </div>
  {{ /if }}

  {{ if type == "panel" }}
    <div class="panel">
      {{ content }}
    </div>
  {{ /if }}
{{ /blocks }}

This is plain text

On my webpage only the sentence "This is plain text" shows up. So the route en and template are ok.

But for some reason nothing from the index.md is rendered in the html-page.

Anyone facing the same issues?

I use Homestead.

Answered by Bart Clarebout!
>>>>>>> Answered <<<<<<<
1 Reply
1 Follower