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 { ReactComponent as Pencil } from '../images/pencil.svg'
|
||||||
import styles from './DocFooter.module.scss'
|
import styles from './DocFooter.module.scss'
|
||||||
|
|
||||||
|
const githubContentPath =
|
||||||
|
'https://github.com/oceanprotocol/docs/blob/master/content'
|
||||||
|
|
||||||
const DocFooter = ({ post }) => (
|
const DocFooter = ({ post }) => (
|
||||||
<footer className={styles.footer}>
|
<footer className={styles.footer}>
|
||||||
<a
|
<a href={`${githubContentPath}/${post.parent.relativePath}`}>
|
||||||
href={`https://github.com/oceanprotocol/docs/blob/master/content/${
|
|
||||||
post.parent.relativePath
|
|
||||||
}`}
|
|
||||||
>
|
|
||||||
<Pencil /> Edit this page on GitHub
|
<Pencil /> Edit this page on GitHub
|
||||||
</a>
|
</a>
|
||||||
</footer>
|
</footer>
|
||||||
|
@ -13,6 +13,7 @@
|
|||||||
font-family: $font-family-button;
|
font-family: $font-family-button;
|
||||||
text-transform: uppercase;
|
text-transform: uppercase;
|
||||||
color: $brand-grey-light;
|
color: $brand-grey-light;
|
||||||
|
margin: 0 $spacer / 2;
|
||||||
|
|
||||||
&:hover,
|
&:hover,
|
||||||
&:focus {
|
&:focus {
|
||||||
|
Loading…
Reference in New Issue
Block a user