samvincent / jekyll-haml

HAML html converter for Jekyll
MIT License
88 stars 40 forks source link

Fix issue where layout was not parsing yaml front matter. #1

Closed simonreed closed 11 years ago

simonreed commented 11 years ago

As .read_yaml was using self.content the haml template is stripped of it's yaml front matter before it can be processed in .read_yaml.

By simply calling .transform after .read_yaml it converts the layout AFTER the front matter yaml has been processed.

eldondev commented 11 years ago

+1

samvincent commented 11 years ago

Thanks @simonreed. I never encountered this issue personally, but I tested this with my site and things worked just as well while the code looks better to me. Appreciate it. Version 0.1.1 released to Rubygems.org.

simonreed commented 11 years ago

@samvincent no problem, glad I could help.