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

Wrapper vs Template #353

Closed
carlflor opened this issue Jul 16, 2016 · 2 comments
Closed

Wrapper vs Template #353

carlflor opened this issue Jul 16, 2016 · 2 comments

Comments

@carlflor
Copy link

Hi, I'm quite new with static site generators. I'd just like to clarify the difference between pages/_template and wrappers/md.js

I've been reading up on posts about Gatsby and watch videos, but I still couldn't get it exactly. I'm confused since they seem to show how a post and the index page would look like. I'm familiar how a template works though (I've used on Jekyll and Rails). Would really appreciate your help. Thanks!

@carlflor
Copy link
Author

okay nevermind, I figured out a few minutes after posting this noob question. If I got it right, posts in .md are wrapped as react components before they get rendered inside the template component?

@KyleAMathews
Copy link
Contributor

Yup exactly!

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