Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Using metalsmith-pug and metalsmith-include to include rendered source files using pug #60

Open
jhyland87 opened this issue Nov 30, 2016 · 0 comments
Assignees

Comments

@jhyland87
Copy link

Hello. I'm using your metalsmith-pug plugin in combination with metalsmith-include to include markdown files in the source directory (which use pug). But I seem to be having an issue with it.

I know that you aren't supporting metalsmith-include, but I'm not sure which of the two plugins is having the problem, so I opened a ticket in metalsmith-include as well.

If you look at the example shown in the metalsmith-include README content, it very similar to what I'm trying to accomplish. The home.md loads home.jade as the template, then it includes thanks.md, assigning it to thanks. Then you can see that the thanks.md file sets the template to thanks.jade. Then thanks.jade just outputs contents (rendered content of home.md) and thanks (rendered content of thanks.md).

The only main difference I can see between that example and my code, is that I'm using pug instead of jade (which I know, same thing)

The problem I'm having, is I cant get the .md file that's getting used as an included file to actually render the content using the template configured in the .md file..

Any idea why the includes would be including the content from the markdown files, but not the rendered pug template?

I created a temporary git repository that will show you the exact issue i'm running into.

Thanks!

@ahmadnassri ahmadnassri self-assigned this Jan 31, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants