diff --git a/gatsby-config.js b/gatsby-config.js index f2c6afbb..ab40e201 100644 --- a/gatsby-config.js +++ b/gatsby-config.js @@ -3,8 +3,10 @@ module.exports = { title: `Bitlogic`, description: `Bitlogic Web es una empresa dedicada al diseño, ingeniería y desarrollo ágil de productos de software, especializada en la transformación digital de instituciones educativas .`, author: `Bitlogic.io`, + siteUrl: `https://www.bitlogic.io`, }, plugins: [ + `gatsby-plugin-sitemap`, { resolve: `gatsby-plugin-google-gtag`, options: { @@ -32,8 +34,8 @@ module.exports = { resolve: `gatsby-source-strapi`, options: { // apiURL: `http://lb-bitlogic-strapi-dev-48805770.sa-east-1.elb.amazonaws.com:1337`, - // apiURL: `https://strapi.bitlogic.io`, - apiURL: process.env.STRAPI_URL, + apiURL: `https://strapi.bitlogic.io`, + // apiURL: process.env.STRAPI_URL, queryLimit: 1000, collectionTypes: [ `banners`, diff --git a/package.json b/package.json index 389e1398..f9e47fe2 100644 --- a/package.json +++ b/package.json @@ -21,6 +21,7 @@ "gatsby-plugin-react-helmet": "^4.12.0", "gatsby-plugin-sass": "^4.12.0", "gatsby-plugin-sharp": "^3.12.0", + "gatsby-plugin-sitemap": "^3.0.0", "gatsby-remark-external-links": "^0.0.4", "gatsby-source-filesystem": "^3.12.0", "gatsby-source-strapi": "^1.0.2", diff --git a/src/components/JobsPage/JobsPage.js b/src/components/JobsPage/JobsPage.js index 57726cb2..3b45abb8 100644 --- a/src/components/JobsPage/JobsPage.js +++ b/src/components/JobsPage/JobsPage.js @@ -8,8 +8,7 @@ import './JobsPage.scss' export default function JobsPage() { const jobsData = useJobsPage() - const banner = jobsData.strapiJobsPage.banner - + const banner = jobsData?.strapiJobsPage?.banner const { pageTitle, pageDescription, pageKeywords } = jobsData?.strapiJobsPage?.pageMetadata || {} return ( diff --git a/yarn.lock b/yarn.lock index 754c3241..7ab60b95 100644 --- a/yarn.lock +++ b/yarn.lock @@ -1006,6 +1006,13 @@ dependencies: regenerator-runtime "^0.13.4" +"@babel/runtime@^7.12.5": + version "7.16.7" + resolved "https://registry.yarnpkg.com/@babel/runtime/-/runtime-7.16.7.tgz#03ff99f64106588c9c403c6ecb8c3bafbbdff1fa" + integrity sha512-9E9FJowqAsytyOY6LG+1KuueckRL+aQW+mKvXRXnuFGyRAyepJPmEo9vgMfXUA6O9u3IeEdv9MAkppFcaQwogQ== + dependencies: + regenerator-runtime "^0.13.4" + "@babel/runtime@^7.15.4": version "7.15.4" resolved "https://registry.yarnpkg.com/@babel/runtime/-/runtime-7.15.4.tgz#fd17d16bfdf878e6dd02d19753a39fa8a8d9c84a" @@ -6187,6 +6194,17 @@ gatsby-plugin-sharp@^3.12.0: svgo "1.3.2" uuid "3.4.0" +gatsby-plugin-sitemap@^3.0.0: + version "3.3.0" + resolved "https://registry.yarnpkg.com/gatsby-plugin-sitemap/-/gatsby-plugin-sitemap-3.3.0.tgz#c269e2f9032802b8984addde90488541a0a2e7b0" + integrity sha512-ChkAeyOIzmWOWmeaLexDRMSH6fmEG46jEi5N8xN85AsbCanz36HY7IZxsjlSdDsLOuoG3RofvStoCDjz8ECCOQ== + dependencies: + "@babel/runtime" "^7.12.5" + common-tags "^1.8.0" + minimatch "^3.0.4" + pify "^3.0.0" + sitemap "^1.13.0" + gatsby-plugin-typescript@^3.12.0: version "3.12.0" resolved "https://registry.yarnpkg.com/gatsby-plugin-typescript/-/gatsby-plugin-typescript-3.12.0.tgz#fad15b7a6d6495949f7b3fc528b57d6054d463eb" @@ -12248,6 +12266,14 @@ sisteransi@^1.0.5: resolved "https://registry.yarnpkg.com/sisteransi/-/sisteransi-1.0.5.tgz#134d681297756437cc05ca01370d3a7a571075ed" integrity sha512-bLGGlR1QxBcynn2d5YmDX4MGjlZvy2MRBDRNHLJ8VI6l6+9FUiyTFNJ0IveOSP0bcXgVDPRcfGqA0pjaqUpfVg== +sitemap@^1.13.0: + version "1.13.0" + resolved "https://registry.yarnpkg.com/sitemap/-/sitemap-1.13.0.tgz#569cbe2180202926a62a266cd3de09c9ceb43f83" + integrity sha1-Vpy+IYAgKSamKiZs094Jyc60P4M= + dependencies: + underscore "^1.7.0" + url-join "^1.1.0" + slash@^3.0.0: version "3.0.0" resolved "https://registry.yarnpkg.com/slash/-/slash-3.0.0.tgz#6539be870c165adbd5240220dbe361f1bc4d4634" @@ -13418,6 +13444,11 @@ underscore.string@^3.3.5: sprintf-js "^1.0.3" util-deprecate "^1.0.2" +underscore@^1.7.0: + version "1.13.2" + resolved "https://registry.yarnpkg.com/underscore/-/underscore-1.13.2.tgz#276cea1e8b9722a8dbed0100a407dda572125881" + integrity sha512-ekY1NhRzq0B08g4bGuX4wd2jZx5GnKz6mKSqFL4nqBlfyMGiG10gDFhDTMEfYmDL6Jy0FUIZp7wiRB+0BP7J2g== + unherit@^1.0.4: version "1.1.3" resolved "https://registry.yarnpkg.com/unherit/-/unherit-1.1.3.tgz#6c9b503f2b41b262330c80e91c8614abdaa69c22" @@ -13710,6 +13741,11 @@ urix@^0.1.0: resolved "https://registry.yarnpkg.com/urix/-/urix-0.1.0.tgz#da937f7a62e21fec1fd18d49b35c2935067a6c72" integrity sha1-2pN/emLiH+wf0Y1Js1wpNQZ6bHI= +url-join@^1.1.0: + version "1.1.0" + resolved "https://registry.yarnpkg.com/url-join/-/url-join-1.1.0.tgz#741c6c2f4596c4830d6718460920d0c92202dc78" + integrity sha1-dBxsL0WWxIMNZxhGCSDQySIC3Hg= + url-loader@^4.1.1: version "4.1.1" resolved "https://registry.yarnpkg.com/url-loader/-/url-loader-4.1.1.tgz#28505e905cae158cf07c92ca622d7f237e70a4e2"