Log in Sign up

Yaml

questions tagged ‘Yaml’

Empty summary metadata is rendered as the text 'null'?

By default, I include a "Summary:" line in post metadata. I don't always add a Summary, but if I leave it empty it renders {{summary}} as null in the template. I tried adding a conditional like so: {{#summary}}{{summary}}{{/summary}} ...but that still renders as null unless I remove the Summary line from the front matter completely. I'd prefer it if I could leave an empty Summary: value in the post metadata without it rendering as null. Possible?