Tag routes, complete with pagination!
This commit is contained in:
parent
89d0ac2a86
commit
bfa8c704d7
2 changed files with 24 additions and 8 deletions
|
|
@ -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 */ }
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue