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

Add support for date-based URLs/filtering #37

Open
rdiaztushman opened this issue May 5, 2014 · 0 comments
Open

Add support for date-based URLs/filtering #37

rdiaztushman opened this issue May 5, 2014 · 0 comments

Comments

@rdiaztushman
Copy link
Member

Lots of blogs support these types of URLs:

/blog/2014/05/04/ ==> list of all blog entries from May 4, 2014
/blog/2014/05/ ==> list of all blog entries from May 2014
/blog/2014/ ==> list of all blog entries from 2014

This can just be a part of the \Blog\Site\Controllers\Home::index method
Remember to add support for pagination on those URLs

the /blog/{year} route shouldn't ever conflict with any of the existing routes because all the other ones are more specific ( /post/{slug}, /category/{path}, etc)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant