Skip to content

Commit

Permalink
Surround image path with link function so will work on non-root deploys
Browse files Browse the repository at this point in the history
  • Loading branch information
leonhiat committed Mar 16, 2016
1 parent db49b37 commit 89d5837
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion components/Bio.js
Original file line number Diff line number Diff line change
@@ -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 () {
Expand All @@ -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),
Expand Down

0 comments on commit 89d5837

Please sign in to comment.