Update packages + update Typography setup

This commit is contained in:
Kyle Mathews 2015-11-21 16:59:04 -08:00
parent 950e38687e
commit 1043f18f0c
6 changed files with 38 additions and 22 deletions

View file

@ -2,14 +2,12 @@ import React from 'react';
import { Link } from 'react-router';
import { prune, include as includes } from 'underscore.string';
import find from 'lodash/collection/find';
import { rhythm, fontSizeToMS } from 'utils/typography'
import { link } from 'gatsby-helpers'
export default class extends React.Component {
render() {
let body, fontSizeToMS, html, nextPost, readNext, ref, rhythm;
ref = this.props.typography,
rhythm = ref.rhythm,
fontSizeToMS = ref.fontSizeToMS;
let body, html, nextPost, readNext;
readNext = this.props.post.readNext;
if (readNext != null) {
nextPost = find(this.props.pages, function(page) {
@ -56,4 +54,4 @@ export default class extends React.Component {
);
}
}
}
}