From 603411f0cdc58826e1dcb34033136436669c0cca Mon Sep 17 00:00:00 2001 From: Kyle Mathews Date: Wed, 16 Mar 2016 09:40:26 -0600 Subject: [PATCH] Consolidate two bios into one Bio component --- components/Bio.js | 29 +++++++++++++++++++++++++++++ pages/index.js | 19 ++----------------- wrappers/md.js | 15 ++------------- 3 files changed, 33 insertions(+), 30 deletions(-) create mode 100644 components/Bio.js diff --git a/components/Bio.js b/components/Bio.js new file mode 100644 index 0000000..2485a1f --- /dev/null +++ b/components/Bio.js @@ -0,0 +1,29 @@ +import React from 'react' +import { config } from 'config' +import { rhythm } from 'utils/typography' + +class Bio extends React.Component { + render () { + return ( +

+ + Written by {config.authorName} who lives and works in San Francisco building useful things. You should follow him on Twitter +

+ ) + } +} + +export default Bio diff --git a/pages/index.js b/pages/index.js index 648822a..70f0278 100644 --- a/pages/index.js +++ b/pages/index.js @@ -7,6 +7,7 @@ import { rhythm } from 'utils/typography' import access from 'safe-access' import { config } from 'config' import include from 'underscore.string/include' +import Bio from 'components/Bio' class BlogIndex extends React.Component { render () { @@ -33,23 +34,7 @@ class BlogIndex extends React.Component { return (
-

- - Written by {config.authorName} who lives and works in San Francisco building useful things. You should follow him on Twitter -

+
    {pageLinks}
diff --git a/wrappers/md.js b/wrappers/md.js index 5037627..093d1d4 100644 --- a/wrappers/md.js +++ b/wrappers/md.js @@ -5,6 +5,7 @@ import { link } from 'gatsby-helpers' import ReadNext from '../components/ReadNext' import { rhythm } from 'utils/typography' import { config } from 'config' +import Bio from 'components/Bio' import '../css/zenburn.css' @@ -32,19 +33,7 @@ class MarkdownWrapper extends React.Component { }} /> -

- - {config.authorName} lives and works in San Francisco building useful things. You should follow him on Twitter -

+
)