-
Notifications
You must be signed in to change notification settings - Fork 248
Easily generate pages per metadata #15
Comments
Add a |
For this, we will have indeed to really use react-router. But I think * will be a requirement since we don't know (when writing routes) what pages you will have. |
We do. After md-collection-loader finishes, we know all the routes available. User |
That's why there is a *. |
Yeah. sorry :) |
And * is the recommended way to catch all routes (and so not found). |
I'll take a look at this later. Really want a tags system |
I will work on it after introducing search in the default boilerplate The idea is to use routes with names like "tag/:tags", read routes to find ":tags" and generate pages based on all metadata "tags". Something like that. This way user will be able to control url generations. |
It's a requirement for me too :) |
Sound easy. Haha. How about I work on search and you work on this. Adding search is much easier. |
Let's do this. |
I have a upcoming project that needs a static site generator. Tagging system is a requirement so I did a little research for making such a system for Statinamic. And here is the result : thangngoc89/blog#89
Wrap these LoC in a condition (check for availability of Probably 404 page will be benefit from this patch too. No need for download data file for such a page. But there is some issues to solve:
|
I will work on this after 0.9 (I was supposed to but, life and shit...). I want this to be really simple. A route and a layout/component should be enough. I think we need to use something like redial to have a universal way to fetch data so we can use a component during build or on client runtime (currently for pages, there is 2 pieces of code to get data, one for static and one for client, which kind of sucks). |
Don't worry, you're doing a really good job.
👍 I love simple |
async-props is another option. It's from react-router creator. and it uses react-router middleware |
I am on it. Should not take that long and user API will be straight forward (nothing specific, just routes with parameters that match name in the frontmatter and boom, generation). |
This is implemented in 0.16 🎉 |
@MoOx do you have a link to the source on this? i cannot find documentation |
Eg:
with a way to sort / paginate results
The text was updated successfully, but these errors were encountered: