Surround image path with link function so will work on non-root deploys

This commit is contained in:
Kyle Mathews 2016-03-16 10:02:36 -06:00
parent 34cbb588af
commit 44fc7c7b40

View file

@ -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),