36 lines
920 B
JavaScript
36 lines
920 B
JavaScript
import React, { Component } from 'react';
|
|
import Helmet from 'react-helmet'
|
|
class PostDefault extends Component {
|
|
render() {
|
|
const { data } = this.props
|
|
return (
|
|
<div>
|
|
<Helmet
|
|
title={`${data.wordpressPost.title} - Saburly.com`}
|
|
meta={[
|
|
{ name: 'description', content: 'We code & design great software' },
|
|
{ name: 'keywords', content: 'software, design, coding, programming, code, consulting' },
|
|
]}
|
|
/>
|
|
<h1>Specific Post - {data.wordpressPost.title}</h1>
|
|
<h1>Slug - {data.wordpressPost.slug}</h1>
|
|
<div dangerouslySetInnerHTML={{
|
|
__html: data.wordpressPost.content
|
|
}}
|
|
/>
|
|
</div>
|
|
);
|
|
}
|
|
}
|
|
|
|
export const query = graphql`
|
|
query PostDefaultQuery($slug: String!) {
|
|
wordpressPost(slug: {eq: $slug}) {
|
|
title
|
|
slug
|
|
content
|
|
}
|
|
}
|
|
`
|
|
|
|
export default PostDefault; |