metalsmith / layouts

A metalsmith plugin for layouts
MIT License
116 stars 49 forks source link

Fix for issue #126 #127

Closed rehierl closed 7 years ago

rehierl commented 7 years ago

These changes should provide a fix for #126.

Now, this is my very first pull request on github, so there certainly are things that still need to be changed. But this version should give you enough information to decide what needs to be done next.

Of course, the './issue-126' folder needs to be removed before merging this branch. I've left it in just in case you wanted to see for yourself that the changes fix the issue I have described. Same with './.gitignore'.

I have added many comments to the source code, but I don't mind if you want to remove them again. As long as they are in, they should help you to understand what is going on.

Please let me know if you need more info on these changes.

Please also test the changes with another template engine. I have no idea of how to use another one other than 'handlebars'. But I am pretty sure that it won't make much of a difference.

jin-jianfeng commented 7 years ago

I think I still got the issue-126 / Test 3.