Fixing syntax highlighting for code

This commit is contained in:
Moris Zen
2018-09-12 12:32:22 +02:00
parent 29c4c1dbad
commit ddb9f1aef8
2 changed files with 5 additions and 2 deletions

View File

@@ -226,7 +226,7 @@ export const query = graphql`
featured_media {
localFile {
childImageSharp {
resolutions(width: 600, height: 300) {
resolutions(width: 700, height: 300) {
src
width
height

View File

@@ -2,7 +2,7 @@ import React, { Component } from 'react'
import Helmet from 'react-helmet'
import Prism from 'prismjs'
require('prismjs/themes/prism-solarizedlight.css')
require('prismjs/themes/prism-tomorrow.css')
import PageTransition from 'gatsby-plugin-page-transitions'
import MessengerCustomerChat from 'react-messenger-customer-chat'
@@ -12,6 +12,9 @@ class PostDefault extends Component {
componentDidMount() {
Prism.highlightAll()
}
componentDidUpdate() {
Prism.highlightAll()
}
render() {
const { data } = this.props
return (