Surround image path with link function so will work on non-root deploys
This commit is contained in:
parent
34cbb588af
commit
44fc7c7b40
1 changed files with 2 additions and 1 deletions
|
|
@ -1,6 +1,7 @@
|
|||
import React from 'react'
|
||||
import { config } from 'config'
|
||||
import { rhythm } from 'utils/typography'
|
||||
import { link } from 'gatsby-helpers'
|
||||
|
||||
class Bio extends React.Component {
|
||||
render () {
|
||||
|
|
@ -11,7 +12,7 @@ class Bio extends React.Component {
|
|||
}}
|
||||
>
|
||||
<img
|
||||
src="/kyle-round-small-pantheon.jpg"
|
||||
src={link('/kyle-round-small-pantheon.jpg')}
|
||||
style={{
|
||||
float: 'left',
|
||||
marginRight: rhythm(1/4),
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue