mirror of
https://github.com/oceanprotocol/docs.git
synced 2024-11-26 19:49:26 +01:00
prepare multiple footer links
This commit is contained in:
parent
553bcd887d
commit
c63ee5ec3f
@ -3,13 +3,12 @@ import PropTypes from 'prop-types'
|
||||
import { ReactComponent as Pencil } from '../images/pencil.svg'
|
||||
import styles from './DocFooter.module.scss'
|
||||
|
||||
const githubContentPath =
|
||||
'https://github.com/oceanprotocol/docs/blob/master/content'
|
||||
|
||||
const DocFooter = ({ post }) => (
|
||||
<footer className={styles.footer}>
|
||||
<a
|
||||
href={`https://github.com/oceanprotocol/docs/blob/master/content/${
|
||||
post.parent.relativePath
|
||||
}`}
|
||||
>
|
||||
<a href={`${githubContentPath}/${post.parent.relativePath}`}>
|
||||
<Pencil /> Edit this page on GitHub
|
||||
</a>
|
||||
</footer>
|
||||
|
@ -13,6 +13,7 @@
|
||||
font-family: $font-family-button;
|
||||
text-transform: uppercase;
|
||||
color: $brand-grey-light;
|
||||
margin: 0 $spacer / 2;
|
||||
|
||||
&:hover,
|
||||
&:focus {
|
||||
|
Loading…
Reference in New Issue
Block a user