Fixing syntax highlighting for code
This commit is contained in:
@@ -226,7 +226,7 @@ export const query = graphql`
|
|||||||
featured_media {
|
featured_media {
|
||||||
localFile {
|
localFile {
|
||||||
childImageSharp {
|
childImageSharp {
|
||||||
resolutions(width: 600, height: 300) {
|
resolutions(width: 700, height: 300) {
|
||||||
src
|
src
|
||||||
width
|
width
|
||||||
height
|
height
|
||||||
|
|||||||
@@ -2,7 +2,7 @@ import React, { Component } from 'react'
|
|||||||
import Helmet from 'react-helmet'
|
import Helmet from 'react-helmet'
|
||||||
import Prism from 'prismjs'
|
import Prism from 'prismjs'
|
||||||
|
|
||||||
require('prismjs/themes/prism-solarizedlight.css')
|
require('prismjs/themes/prism-tomorrow.css')
|
||||||
|
|
||||||
import PageTransition from 'gatsby-plugin-page-transitions'
|
import PageTransition from 'gatsby-plugin-page-transitions'
|
||||||
import MessengerCustomerChat from 'react-messenger-customer-chat'
|
import MessengerCustomerChat from 'react-messenger-customer-chat'
|
||||||
@@ -12,6 +12,9 @@ class PostDefault extends Component {
|
|||||||
componentDidMount() {
|
componentDidMount() {
|
||||||
Prism.highlightAll()
|
Prism.highlightAll()
|
||||||
}
|
}
|
||||||
|
componentDidUpdate() {
|
||||||
|
Prism.highlightAll()
|
||||||
|
}
|
||||||
render() {
|
render() {
|
||||||
const { data } = this.props
|
const { data } = this.props
|
||||||
return (
|
return (
|
||||||
|
|||||||
Reference in New Issue
Block a user