Tag routes, complete with pagination!

This commit is contained in:
Nick Pegg 2017-10-11 20:14:32 -07:00
parent 89d0ac2a86
commit bfa8c704d7
2 changed files with 24 additions and 8 deletions

View file

@ -42,7 +42,10 @@ class App extends Component {
<Route exact path="/" component={Posts} />
{ /* Post routes */ }
<Route path="/page/:page" component={Posts} />
<Route exact path="/page/:page" component={Posts} />
<Route exact path="/tag/:tag" component={Posts} />
<Route exact path="/tag/:tag/page/:page" component={Posts} />
<Route path="/:year/:month/:slug" component={Post} />
{ /* Page routes */ }