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

Additional non 'post' pages #459

Closed
urcades opened this issue Sep 22, 2016 · 2 comments
Closed

Additional non 'post' pages #459

urcades opened this issue Sep 22, 2016 · 2 comments

Comments

@urcades
Copy link

urcades commented Sep 22, 2016

In which file(s) might I add an additional non-post page?

I'm currently trying to build a site which has an 'index' (/), a similarly-structured 'info' page, and 'posts' which comprise of actual blog posts that could be iterated upon and rendered in the index — these 'post' pages are actually affected by the included md.js file.

This blog post I had come across while searching for an answer to this referenced something called a 'data.js' file which seems to enable what I'm attempting to do.

Thanks!

@KyleAMathews
Copy link
Contributor

All pages come from /pages. You can put react components there and they become pages automatically. If you put in static files e.g. markdown, they need a wrapper component but also become pages automatically.

That help?

@urcades
Copy link
Author

urcades commented Sep 23, 2016

It did! Thanks!

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