Closed aaronibrahim closed 6 years ago
Hi @aaronibrahim, partials are no longer automatically registered by this plugin, so you'll need to use metalsmith-register-partials instead. See the changelog: https://github.com/ismay/metalsmith-layouts/blob/master/CHANGELOG.md#200---january-10-2018
Then it should work.
A note to anyone who might come across this thread, metalsmith-register-partials wasn't updated to address a breaking change in a later metalsmith release, so @timdp released metalsmith-discover-partials and metalsmith-discover-helpers and they worked for me.
@aaronibrahim Thanks for mentioning those plugins! I didn't know that register-partials no longer worked. I'll add the new plugins to the readme.
@ismay Could you also update the GitHub release description?
@glen-84 I might address that later. For now you can refer to the changelog.
I've tried every which way to have a handlebars layout include a handlebars partial and it hasn't worked.
Here are my setups demonstrating the problem I'm having:
Baselined Test Case (without a partial include): working
Test case with a partial include not working Please note I've indicated all the different ways I've tried structuring the partial include in the readme.
Thank you in advance for your assistance, and please let me know if there is more code I can put up to demonstrate or troubleshoot the problem.