Search code examples
docpad

docpad: yaml postfix in metadata header


I have seen somewhere that yaml is added to the metadata section:

--- yaml
layout: 'post'
---

Why is that?


Solution

  • I think I found it myself.

    The metadata section can be parsed either by yaml or cson. So a metadata section starting with --- yaml, or just ---will be parsed with yaml, while a section starting with --- cson will be parsed as cson.