|
|
@ -45,8 +45,8 @@ const NavigationFooter = ({next, prev, location}) => { |
|
|
|
css={{ |
|
|
|
paddingTop: 10, |
|
|
|
}}> |
|
|
|
<PrimaryLink location={location} to={prev}> |
|
|
|
{linkToTitle(prev)} |
|
|
|
<PrimaryLink location={location} to={`${prev.id}.html`}> |
|
|
|
{prev.title} |
|
|
|
</PrimaryLink> |
|
|
|
</div> |
|
|
|
</div> |
|
|
@ -66,8 +66,8 @@ const NavigationFooter = ({next, prev, location}) => { |
|
|
|
css={{ |
|
|
|
paddingTop: 10, |
|
|
|
}}> |
|
|
|
<PrimaryLink location={location} to={next}> |
|
|
|
{linkToTitle(next)} |
|
|
|
<PrimaryLink location={location} to={`${next.id}.html`}> |
|
|
|
{next.title} |
|
|
|
</PrimaryLink> |
|
|
|
</div> |
|
|
|
</div> |
|
|
@ -80,14 +80,18 @@ const NavigationFooter = ({next, prev, location}) => { |
|
|
|
}; |
|
|
|
|
|
|
|
NavigationFooter.propTypes = { |
|
|
|
next: PropTypes.string, |
|
|
|
prev: PropTypes.string, |
|
|
|
next: PropTypes.shape({ |
|
|
|
id: PropTypes.string.isRequired, |
|
|
|
title: PropTypes.string.isRequired, |
|
|
|
}), |
|
|
|
prev: PropTypes.shape({ |
|
|
|
id: PropTypes.string.isRequired, |
|
|
|
title: PropTypes.string.isRequired, |
|
|
|
}), |
|
|
|
}; |
|
|
|
|
|
|
|
export default NavigationFooter; |
|
|
|
|
|
|
|
const linkToTitle = link => link.replace(/-/g, ' ').replace('.html', ''); |
|
|
|
|
|
|
|
const PrimaryLink = ({children, to, location}) => { |
|
|
|
// quick fix
|
|
|
|
// TODO: replace this with better method of getting correct full url
|
|
|
@ -97,7 +101,6 @@ const PrimaryLink = ({children, to, location}) => { |
|
|
|
<Link |
|
|
|
css={{ |
|
|
|
display: 'inline', |
|
|
|
textTransform: 'capitalize', |
|
|
|
borderColor: colors.subtle, |
|
|
|
transition: 'border-color 0.2s ease', |
|
|
|
fontSize: 30, |
|
|
|