2018-07-05 20:43:56 +02:00
|
|
|
import React, { Component } from 'react'
|
2018-07-05 20:56:44 +02:00
|
|
|
import Link from 'gatsby-link'
|
2018-07-05 20:43:56 +02:00
|
|
|
|
2018-07-06 23:32:12 +02:00
|
|
|
import PageIntro from '../components/PageIntro'
|
2018-07-06 09:35:17 +02:00
|
|
|
import Card from '../components/Card'
|
2018-09-12 13:57:38 +02:00
|
|
|
import SEO from '../components/SEO'
|
2018-09-13 23:40:56 +02:00
|
|
|
import Helmet from 'react-helmet'
|
|
|
|
|
import SectionIntro from '../components/SectionIntro'
|
2018-07-06 09:35:17 +02:00
|
|
|
|
2018-08-30 11:07:16 +02:00
|
|
|
import PageTransition from 'gatsby-plugin-page-transitions'
|
|
|
|
|
|
2018-07-05 20:43:56 +02:00
|
|
|
class Blog extends Component {
|
|
|
|
|
render() {
|
2018-07-05 20:56:44 +02:00
|
|
|
const data = this.props.data
|
|
|
|
|
return (
|
2018-08-30 11:07:16 +02:00
|
|
|
<PageTransition>
|
2018-09-13 23:40:56 +02:00
|
|
|
<SEO
|
|
|
|
|
siteTitle="Saburly - Blog Posts"
|
|
|
|
|
siteDescription="Bugs keep us busy, but sometimes we find the time to have fun & publish"
|
|
|
|
|
siteUrl="https://saburly.com/blog"
|
|
|
|
|
/>
|
|
|
|
|
<Helmet>
|
2018-10-01 16:27:47 +02:00
|
|
|
<script type="text/javascript">{`window.$crisp=[];window.CRISP_WEBSITE_ID="346bb060-d289-437d-bafa-3a02d470f7b6";(function(){ d=document;s=d.createElement("script"); s.src="https://client.crisp.chat/l.js"; s.async=1;d.getElementsByTagName("head")[0].appendChild(s);})(); `}</script>
|
2018-09-13 23:40:56 +02:00
|
|
|
</Helmet>
|
|
|
|
|
|
|
|
|
|
<SectionIntro
|
|
|
|
|
classes="max-w-lg mx-auto"
|
|
|
|
|
h2Classes="text-5xl text-center mt-10 mb-4"
|
|
|
|
|
headline="Blog Posts"
|
|
|
|
|
textClasses="text-center"
|
|
|
|
|
/>
|
|
|
|
|
<div className="container mx-auto p-4 w-full md:flex md:flex-wrap items-stretch w-full">
|
2018-07-06 23:32:12 +02:00
|
|
|
{data.allWordpressPost.edges.map(({ node }) => (
|
2018-07-07 00:07:28 +02:00
|
|
|
<div key={node.id} className="mt-4 md:w-1/2 p-2">
|
2018-09-05 00:07:15 +02:00
|
|
|
<Link
|
|
|
|
|
to={`blog/${node.slug}`}
|
|
|
|
|
className="pointer no-underline saburly-transition hover:opacity-50"
|
|
|
|
|
>
|
|
|
|
|
<Card
|
|
|
|
|
title={node.title}
|
|
|
|
|
date={node.date}
|
2018-10-03 20:14:31 +02:00
|
|
|
authorName={node.author.name}
|
2018-09-14 12:52:11 +02:00
|
|
|
imgAlt={node.title}
|
2018-09-05 00:07:15 +02:00
|
|
|
excerpt={node.excerpt}
|
|
|
|
|
image={
|
|
|
|
|
node.featured_media
|
|
|
|
|
? node.featured_media.localFile.childImageSharp
|
|
|
|
|
.resolutions
|
|
|
|
|
: undefined
|
|
|
|
|
}
|
|
|
|
|
/>
|
|
|
|
|
</Link>
|
2018-07-06 23:32:12 +02:00
|
|
|
</div>
|
|
|
|
|
))}
|
|
|
|
|
</div>
|
2018-09-13 23:40:56 +02:00
|
|
|
<div className="container mx-auto p-4 w-full">
|
|
|
|
|
<SectionIntro
|
|
|
|
|
classes="max-w-lg mx-auto"
|
|
|
|
|
h2Classes="text-5xl text-center mt-10 mb-4"
|
|
|
|
|
headline="Social Media Activity"
|
|
|
|
|
textClasses="text-center"
|
|
|
|
|
/>
|
|
|
|
|
<div id="curator-feed-saburly" />
|
|
|
|
|
</div>
|
2018-08-30 11:07:16 +02:00
|
|
|
</PageTransition>
|
2018-07-05 20:56:44 +02:00
|
|
|
)
|
2018-07-05 20:43:56 +02:00
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
export const query = graphql`
|
|
|
|
|
query blogQuery {
|
|
|
|
|
allWordpressPost {
|
|
|
|
|
edges {
|
|
|
|
|
node {
|
|
|
|
|
id
|
|
|
|
|
title
|
|
|
|
|
excerpt
|
2018-07-06 10:18:15 +02:00
|
|
|
status
|
2018-07-05 20:43:56 +02:00
|
|
|
slug
|
2018-10-03 20:14:31 +02:00
|
|
|
author {
|
|
|
|
|
name
|
|
|
|
|
}
|
2018-07-05 20:43:56 +02:00
|
|
|
date(formatString: "MMMM DD, YYYY")
|
2018-07-06 10:23:57 +02:00
|
|
|
featured_media {
|
|
|
|
|
localFile {
|
|
|
|
|
childImageSharp {
|
|
|
|
|
resolutions(width: 600, height: 300) {
|
|
|
|
|
src
|
|
|
|
|
width
|
|
|
|
|
height
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
2018-07-05 20:43:56 +02:00
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
`
|
|
|
|
|
|
|
|
|
|
export default Blog
|