diff --git a/src/components/SEO.js b/src/components/SEO.js
index a31e496..a27f0cf 100644
--- a/src/components/SEO.js
+++ b/src/components/SEO.js
@@ -4,39 +4,92 @@ import ImgIntro from '../images/web-development-company.svg'
class SEO extends Component {
render() {
- const { siteTitle, siteDescription, siteImage, siteUrl} = this.props
+ const { siteTitle, siteDescription, siteImage, siteUrl, postSEO } = this.props
- let title = siteTitle ? siteTitle : 'Saburly - App Development & Mobile Design agency that makes you stand out'
- let desc = siteDescription ? siteDescription : 'We are in the business of solving real-world problems with digital solutions. Our mission is to make you stand out with the help of modern technologies'
+ let title = siteTitle
+ ? siteTitle
+ : 'Saburly - App Development & Mobile Design agency that makes you stand out'
+ let desc = siteDescription
+ ? siteDescription
+ : 'We are in the business of solving real-world problems with digital solutions. Our mission is to make you stand out with the help of modern technologies'
let img = siteImage ? siteImage : ImgIntro
+ let blogUrl = 'https://www.saburly.com/blog'
+ let pageUrl = siteUrl ? siteUrl : 'https://www.saburly.com'
+
+ const schemaOrgJSONLD = [
+ {
+ '@context': 'http://schema.org',
+ '@type': 'WebSite',
+ url: blogUrl,
+ name: title,
+ alternateName:
+ 'Saburly - App Development & Mobile Design agency that makes you stand out',
+ },
+ ]
+
+ if (postSEO) {
+ schemaOrgJSONLD.push(
+ {
+ '@context': 'http://schema.org',
+ '@type': 'BreadcrumbList',
+ itemListElement: [
+ {
+ '@type': 'ListItem',
+ position: 1,
+ item: {
+ '@id': pageUrl,
+ name: title,
+ image,
+ },
+ },
+ ],
+ },
+ {
+ '@context': 'http://schema.org',
+ '@type': 'BlogPosting',
+ url: blogURL,
+ name: title,
+ alternateName:
+ 'Saburly - App Development & Mobile Design agency that makes you stand out',
+ headline: title,
+ image: {
+ '@type': 'ImageObject',
+ url: img,
+ },
+ desc,
+ }
+ )
+ }
return (
-
- {title}
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
+ {title}
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
-
+
)
}
}
diff --git a/src/templates/post-default.js b/src/templates/post-default.js
index e7c6973..19583d1 100644
--- a/src/templates/post-default.js
+++ b/src/templates/post-default.js
@@ -20,7 +20,7 @@ class PostDefault extends Component {
const { data } = this.props
return (
-
+