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

Contents Buffer #1

Closed
dahmian opened this issue Mar 16, 2015 · 4 comments
Closed

Contents Buffer #1

dahmian opened this issue Mar 16, 2015 · 4 comments
Milestone

Comments

@dahmian
Copy link

dahmian commented Mar 16, 2015

Thanks for writing this plug in! I have a question about contents. I noticed that metalsmith outputs the "contents" as a buffer, so if I use this plugin, "contents" is not available to the JSON output. What if I want to use contents in the JSON file? Is there a way to do this without modifying metalsmith-writemetadata to output a string instead of a buffer?

@Waxolunist
Copy link
Owner

No it is not possible without modifying it. I can have a look, so maybe there is an option.

If you have problems using the buffer you can have a look into my site: http://christian.sterzl.info or https://github.com/Waxolunist/christian.sterzl.info

@dahmian dahmian closed this as completed Mar 20, 2015
Waxolunist pushed a commit that referenced this issue Mar 20, 2015
@Waxolunist Waxolunist added this to the v0.4.3 milestone Mar 20, 2015
@Waxolunist
Copy link
Owner

Is this solution what you expected?

@dahmian
Copy link
Author

dahmian commented Mar 20, 2015

Yes! That works just like I would expect.

@Waxolunist
Copy link
Owner

Cool. I had a small error. You should use 0.4.4.

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