Proper HistoryNav
Detects whether there's a previous page or next page, the old HistoryNav was made to be dumber and most of the logic now lives in Posts (which is the only thing that uses HistoryNav anyway) The side-effect is that the nav is now within the content column, which is okay since it's symmetric now.
This commit is contained in:
parent
04a4e8a93f
commit
9fad879181
3 changed files with 80 additions and 42 deletions
|
|
@ -13,7 +13,7 @@ import { Container, Row, Column } from './skeleton';
|
|||
import { Post, Posts } from './Article';
|
||||
import { Footer } from './Footer';
|
||||
import { Header } from './Header';
|
||||
import { NavList, TagNav, HistoryNav } from './Nav';
|
||||
import { NavList, TagNav } from './Nav';
|
||||
import { NotFound } from './NotFound';
|
||||
|
||||
|
||||
|
|
@ -51,9 +51,6 @@ class App extends Component {
|
|||
</Column>
|
||||
</Row>
|
||||
|
||||
{ /* Display HistoryNav if this is a series of articles */ }
|
||||
<Route exact path="/" component={HistoryNav} />
|
||||
<Route exact path="/page/:page" component={HistoryNav} />
|
||||
</Container>
|
||||
|
||||
<Footer />
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue