Skip to content

Yaml definitions on Handlebars files #240

@Lukas238

Description

@Lukas238

The bug

I have a handlebar file with YAML declarations on top.

---
layout: default
page_id: upgrades
body_css: page-upgrades
---
<section id="content">
    <article>
        <h2>Title</h2>
        <p>Lorem ipsum dolo sit amet.</p>
    </article>
</section>

After I beautify it the YAML declaration is modified:

-- -layout : default
page_id : upgrades
body_css : page - upgrades
-- - <section id="content">
    <article>
        <h2>Title</h2>
        <p>Lorem ipsum dolo sit amet.</p>
    </article>
</section>

System (please complete the following information):

  • OS: macOS
  • Version: Mojave

Additional information:
This way to include YAML in a handlebar file is part of the workflow of https://assemble.io/ gulp static site generator.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions