Remove Moris and Wordpress
This commit is contained in:
@@ -10,7 +10,7 @@ module.exports = {
|
|||||||
{
|
{
|
||||||
resolve: 'gatsby-source-wordpress',
|
resolve: 'gatsby-source-wordpress',
|
||||||
options: {
|
options: {
|
||||||
baseUrl: 'swp.sarajevo.net',
|
baseUrl: 'saburly.wordpress.com',
|
||||||
protocol: 'https',
|
protocol: 'https',
|
||||||
hostingWPCOM: false,
|
hostingWPCOM: false,
|
||||||
useACF: true,
|
useACF: true,
|
||||||
|
|||||||
@@ -1,43 +1,43 @@
|
|||||||
const path = require('path')
|
const path = require('path')
|
||||||
|
|
||||||
exports.createPages = ({ graphql, boundActionCreators }) => {
|
//exports.createPages = ({ graphql, boundActionCreators }) => {
|
||||||
const { createPage } = boundActionCreators
|
//const { createPage } = boundActionCreators
|
||||||
return new Promise((resolve, reject) => {
|
//return new Promise((resolve, reject) => {
|
||||||
graphql(
|
//graphql(
|
||||||
`
|
//`
|
||||||
{
|
//{
|
||||||
allWordpressPost {
|
//allWordpressPost {
|
||||||
edges {
|
//edges {
|
||||||
node {
|
//node {
|
||||||
slug
|
//slug
|
||||||
status
|
//status
|
||||||
}
|
//}
|
||||||
}
|
//}
|
||||||
}
|
//}
|
||||||
}
|
//}
|
||||||
`
|
//`
|
||||||
).then(result => {
|
//).then(result => {
|
||||||
if (result.errors) {
|
//if (result.errors) {
|
||||||
console.log(result.errors)
|
//console.log(result.errors)
|
||||||
reject(result.errors)
|
//reject(result.errors)
|
||||||
}
|
//}
|
||||||
|
|
||||||
createPage({
|
//createPage({
|
||||||
path: `/blog/`,
|
//path: `/blog/`,
|
||||||
component: path.resolve('./src/templates/blog.js'),
|
//component: path.resolve('./src/templates/blog.js'),
|
||||||
})
|
//})
|
||||||
|
|
||||||
result.data.allWordpressPost.edges.forEach(({ node }) => {
|
//result.data.allWordpressPost.edges.forEach(({ node }) => {
|
||||||
createPage({
|
//createPage({
|
||||||
path: `blog/${node.slug}`,
|
//path: `blog/${node.slug}`,
|
||||||
component: path.resolve('./src/templates/post-default.js'),
|
//component: path.resolve('./src/templates/post-default.js'),
|
||||||
context: {
|
//context: {
|
||||||
slug: node.slug,
|
//slug: node.slug,
|
||||||
},
|
//},
|
||||||
})
|
//})
|
||||||
})
|
//})
|
||||||
|
|
||||||
resolve()
|
//resolve()
|
||||||
})
|
//})
|
||||||
})
|
//})
|
||||||
}
|
//}
|
||||||
|
|||||||
@@ -69,7 +69,6 @@ class SEO extends Component {
|
|||||||
|
|
||||||
return (
|
return (
|
||||||
<Helmet>
|
<Helmet>
|
||||||
<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>
|
|
||||||
|
|
||||||
<title>{title}</title>
|
<title>{title}</title>
|
||||||
<meta name="description" content={desc} />
|
<meta name="description" content={desc} />
|
||||||
|
|||||||
@@ -63,9 +63,6 @@ const AboutPage = () => (
|
|||||||
textClasses="text-center"
|
textClasses="text-center"
|
||||||
/>
|
/>
|
||||||
<div className="container mx-auto w-full md:flex md:flex-wrap items-stretch w-full">
|
<div className="container mx-auto w-full md:flex md:flex-wrap items-stretch w-full">
|
||||||
<div className="md:w-1/3 p-2">
|
|
||||||
<Card team unshadowed teamMember={Moris} title="Moris" />
|
|
||||||
</div>
|
|
||||||
<div className="md:w-1/3 p-2">
|
<div className="md:w-1/3 p-2">
|
||||||
<Card team unshadowed teamMember={Senad} title="Senad" />
|
<Card team unshadowed teamMember={Senad} title="Senad" />
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
@@ -102,7 +102,7 @@ const IndexPage = ({ ...props }) => (
|
|||||||
/>
|
/>
|
||||||
</section>
|
</section>
|
||||||
|
|
||||||
<section className="bg-saburly-lighter text-center p-4 my-12">
|
<section className="bg-saburly-lighter text-center p-4">
|
||||||
<div className="my-8 py-8 container mx-auto max-w-lg">
|
<div className="my-8 py-8 container mx-auto max-w-lg">
|
||||||
<SectionIntro
|
<SectionIntro
|
||||||
h2Classes="text-3xl font-black xsm:text-4xl sm:text-5xl"
|
h2Classes="text-3xl font-black xsm:text-4xl sm:text-5xl"
|
||||||
@@ -170,78 +170,40 @@ const IndexPage = ({ ...props }) => (
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</section>
|
</section>
|
||||||
|
|
||||||
<section className="text-center p-4 relative">
|
|
||||||
<SectionIntro
|
|
||||||
h2Classes="py-8 text-3xl font-black xsm:text-4xl sm:text-5xl"
|
|
||||||
headline="Sometimes we have fun & publish"
|
|
||||||
/>
|
|
||||||
<div className="container mx-auto w-full md:flex md:flex-wrap items-stretch w-full">
|
|
||||||
{props.data.allWordpressPost.edges.map(({ node }) => (
|
|
||||||
<div key={node.id} className="md:w-1/2 p-2">
|
|
||||||
<Link
|
|
||||||
to={`blog/${node.slug}`}
|
|
||||||
className="pointer no-underline saburly-transition hover:opacity-50"
|
|
||||||
>
|
|
||||||
<Card
|
|
||||||
url={`blog/${node.slug}`}
|
|
||||||
title={node.title}
|
|
||||||
date={node.date}
|
|
||||||
authorName={node.author.name}
|
|
||||||
imgAlt={node.title}
|
|
||||||
excerpt={node.excerpt}
|
|
||||||
image={
|
|
||||||
node.featured_media
|
|
||||||
? node.featured_media.localFile.childImageSharp
|
|
||||||
.resolutions
|
|
||||||
: undefined
|
|
||||||
}
|
|
||||||
/>
|
|
||||||
</Link>
|
|
||||||
</div>
|
|
||||||
))}
|
|
||||||
</div>
|
|
||||||
<Button
|
|
||||||
standard
|
|
||||||
text="More Posts"
|
|
||||||
url="/blog"
|
|
||||||
classes="mt-2 mb-8 hover:shadow-md rounded-full text-grey-darker"
|
|
||||||
/>
|
|
||||||
</section>
|
|
||||||
</main>
|
</main>
|
||||||
</PageTransition>
|
</PageTransition>
|
||||||
)
|
)
|
||||||
|
|
||||||
export const query = graphql`
|
//export const query = graphql`
|
||||||
query indexPostsQuery {
|
//query indexPostsQuery {
|
||||||
allWordpressPost(limit: 2) {
|
//allWordpressPost(limit: 2) {
|
||||||
edges {
|
//edges {
|
||||||
node {
|
//node {
|
||||||
id
|
//id
|
||||||
title
|
//title
|
||||||
author {
|
//author {
|
||||||
id
|
//id
|
||||||
name
|
//name
|
||||||
}
|
//}
|
||||||
excerpt
|
//excerpt
|
||||||
status
|
//status
|
||||||
slug
|
//slug
|
||||||
date(formatString: "MMMM DD, YYYY")
|
//date(formatString: "MMMM DD, YYYY")
|
||||||
featured_media {
|
//featured_media {
|
||||||
localFile {
|
//localFile {
|
||||||
childImageSharp {
|
//childImageSharp {
|
||||||
resolutions(width: 700, height: 300) {
|
//resolutions(width: 700, height: 300) {
|
||||||
src
|
//src
|
||||||
width
|
//width
|
||||||
height
|
//height
|
||||||
}
|
//}
|
||||||
}
|
//}
|
||||||
}
|
//}
|
||||||
}
|
//}
|
||||||
}
|
//}
|
||||||
}
|
//}
|
||||||
}
|
//}
|
||||||
}
|
//}
|
||||||
`
|
//`
|
||||||
|
|
||||||
export default IndexPage
|
export default IndexPage
|
||||||
|
|||||||
@@ -20,7 +20,6 @@ class Blog extends Component {
|
|||||||
siteUrl="https://saburly.com/blog"
|
siteUrl="https://saburly.com/blog"
|
||||||
/>
|
/>
|
||||||
<Helmet>
|
<Helmet>
|
||||||
<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>
|
|
||||||
</Helmet>
|
</Helmet>
|
||||||
|
|
||||||
<SectionIntro
|
<SectionIntro
|
||||||
@@ -67,35 +66,35 @@ class Blog extends Component {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
export const query = graphql`
|
//export const query = graphql`
|
||||||
query blogQuery {
|
//query blogQuery {
|
||||||
allWordpressPost {
|
//allWordpressPost {
|
||||||
edges {
|
//edges {
|
||||||
node {
|
//node {
|
||||||
id
|
//id
|
||||||
title
|
//title
|
||||||
excerpt
|
//excerpt
|
||||||
status
|
//status
|
||||||
slug
|
//slug
|
||||||
author {
|
//author {
|
||||||
name
|
//name
|
||||||
}
|
//}
|
||||||
date(formatString: "MMMM DD, YYYY")
|
//date(formatString: "MMMM DD, YYYY")
|
||||||
featured_media {
|
//featured_media {
|
||||||
localFile {
|
//localFile {
|
||||||
childImageSharp {
|
//childImageSharp {
|
||||||
resolutions(width: 600, height: 300) {
|
//resolutions(width: 600, height: 300) {
|
||||||
src
|
//src
|
||||||
width
|
//width
|
||||||
height
|
//height
|
||||||
}
|
//}
|
||||||
}
|
//}
|
||||||
}
|
//}
|
||||||
}
|
//}
|
||||||
}
|
//}
|
||||||
}
|
//}
|
||||||
}
|
//}
|
||||||
}
|
//}
|
||||||
`
|
//`
|
||||||
|
|
||||||
export default Blog
|
export default Blog
|
||||||
|
|||||||
@@ -62,21 +62,21 @@ class PostDefault extends Component {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
export const query = graphql`
|
//export const query = graphql`
|
||||||
query PostDefaultQuery($slug: String!) {
|
//query PostDefaultQuery($slug: String!) {
|
||||||
wordpressPost(slug: { eq: $slug }) {
|
//wordpressPost(slug: { eq: $slug }) {
|
||||||
title
|
//title
|
||||||
slug
|
//slug
|
||||||
content
|
//content
|
||||||
author {
|
//author {
|
||||||
name
|
//name
|
||||||
}
|
//}
|
||||||
date(formatString: "MMMM DD, YYYY")
|
//date(formatString: "MMMM DD, YYYY")
|
||||||
featured_media {
|
//featured_media {
|
||||||
source_url
|
//source_url
|
||||||
}
|
//}
|
||||||
}
|
//}
|
||||||
}
|
//}
|
||||||
`
|
//`
|
||||||
|
|
||||||
export default PostDefault
|
export default PostDefault
|
||||||
|
|||||||
Reference in New Issue
Block a user